Florian Bruhin
729be7e7cc
ipc: Skip problematic test on Ubuntu Trusty.
2015-09-10 08:21:37 +02:00
Florian Bruhin
087e9a4266
Fix ipc on Windows, take 2.
2015-09-10 08:04:02 +02:00
Florian Bruhin
87ccc31cce
ipc: Add some more tests for _atime_timer.
2015-09-10 08:02:19 +02:00
Florian Bruhin
1dba5b0bbd
ipc: Fix _atime_timer shutdown on Windows.
2015-09-10 07:52:26 +02:00
Florian Bruhin
d2bce5dca9
ipc tests: Try to disconnect _atime_timer.
...
For some reason this fails during teardown on OS X!?
File "/Users/buildbot/buildbot/slave/osx/build/qutebrowser/misc/ipc.py", line 357, in update_atime
path = self._server.fullServerName()
File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/unittest/mock.py", line 895, in __call__
_mock_self._mock_check_sig(*args, **kwargs)
File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/unittest/mock.py", line 107, in checksig
sig.bind(*args, **kwargs)
File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/inspect.py", line 2652, in bind
return args[0]._bind(args[1:], kwargs)
File "/usr/local/Cellar/python3/3.4.3/Frameworks/Python.framework/Versions/3.4/lib/python3.4/inspect.py", line 2537, in _bind
param = next(parameters)
File "/Users/buildbot/buildbot/slave/osx/build/.tox/py34/bin/../lib/python3.4/_collections_abc.py", line 512, in __iter__
for key in self._mapping:
File "/Users/buildbot/buildbot/slave/osx/build/.tox/py34/lib/python3.4/collections/__init__.py", line 91, in __iter__
curr = root.next
2015-09-10 07:49:45 +02:00
Florian Bruhin
e6cf76e40c
Fix coverage and lint.
2015-09-10 07:44:45 +02:00
Florian Bruhin
5be408b79f
Update changelog.
2015-09-10 07:43:56 +02:00
Florian Bruhin
58073fd768
ipc: Update the atime of the socket all 6h.
...
See #888 .
2015-09-10 07:38:11 +02:00
Florian Bruhin
1311e99e7c
Make pep8 shut up.
2015-09-09 23:00:52 +02:00
Florian Bruhin
bcee12853d
Cleanup for ignored log messages.
2015-09-09 22:53:37 +02:00
Florian Bruhin
d217fe09c6
Hide some more lgo messages on OS X.
...
Fixes #931 .
2015-09-09 22:50:43 +02:00
Florian Bruhin
c8f69d29a8
tests: Ignore SSLRead warning on OS X, take 3.
2015-09-09 22:05:48 +02:00
Florian Bruhin
2ca8070e7a
Add workaround for OS X issue.
2015-09-09 20:48:23 +02:00
Florian Bruhin
f7d3070c34
ipc: Fix start when a stale legacy server exists.
2015-09-09 19:39:01 +02:00
Florian Bruhin
37a2523bff
Add a py_proc fixture to conftest.py.
2015-09-09 19:39:01 +02:00
Florian Bruhin
1d7c2b6b82
Don't set TMPDIR for test_legacy.
...
This has no real benefit and seems to break tests with some platforms.
2015-09-09 19:31:52 +02:00
Florian Bruhin
011b571336
Use a shorter tempdir.
2015-09-09 19:31:52 +02:00
Florian Bruhin
b135569d5c
ipc: Add workaround for NameError w/ SocketOptions.
2015-09-09 19:31:52 +02:00
Florian Bruhin
69e735c42e
ipc: Add username to hash instead.
2015-09-09 19:31:52 +02:00
Florian Bruhin
34bd000442
Use shorter names.
...
The typical test path for a legacy FIFO was something like:
/tmp/pytest-92/test_correct_socket_name0/qutebrowser_test/qutebrowser-ipc-dfc627b5be8602ea0e9cd258b73c0bc3
This is probably too long for a Unix local domain socket (104 chars max).
2015-09-09 19:31:52 +02:00
Florian Bruhin
4daa7e6979
Don't add username to FIFO name on Linux.
...
The runtime directory already has a qutebrowser subdir.
2015-09-09 19:31:52 +02:00
Florian Bruhin
3573b57130
Set socket permissions correctly.
2015-09-09 19:31:52 +02:00
Florian Bruhin
78cb0eaf85
More work on #888 (new IPC path).
...
First trying the legacy path and then using the new one works fine now, but the
permissions are still wrong.
2015-09-09 19:31:52 +02:00
Florian Bruhin
74d7997a67
Set application info earlier.
2015-09-09 19:31:52 +02:00
Florian Bruhin
a4bc4ad478
Only log a single message in utils.error.
...
This helps with seeing the full message with logfail.
2015-09-09 19:31:52 +02:00
Florian Bruhin
9d9372c6a8
Add standarddir.temp().
2015-09-09 19:31:52 +02:00
Florian Bruhin
44b1ca5c2f
Fix comment.
2015-09-09 19:31:52 +02:00
Florian Bruhin
7dedf73ea4
tests: Fix ignored SSLRead warning on OS X.
2015-09-09 17:50:09 +02:00
Florian Bruhin
b0c2021eca
Revert "logfail: Update tests to use testdir."
...
This reverts commit f7e40f73ab
.
Conflicts:
tests/helpers/test_logfail.py
2015-09-09 08:49:51 +02:00
Florian Bruhin
2f8b39df1c
Revert "logfail: Switch tests to subprocess pytest runs."
...
This reverts commit 09c265ddb0
.
2015-09-09 08:49:17 +02:00
Florian Bruhin
f7c405d2f4
Revert "logfail: Continue running test and fail afterwards."
...
This reverts commit 66ed4e9c4e
.
2015-09-09 08:49:06 +02:00
Florian Bruhin
d18c33987d
Quick pep8 fix.
...
This is already fixed in the new-ipc-path branch, but let's at least get this
straight in master.
2015-09-09 08:06:56 +02:00
Florian Bruhin
0ec9efcdc0
tox: Update pytest-html to 1.6.
...
Changelog:
Preserve environment details when using pytest-xdist.
2015-09-09 08:00:18 +02:00
Florian Bruhin
909cafb516
Fix lint.
2015-09-09 07:58:14 +02:00
Florian Bruhin
66ed4e9c4e
logfail: Continue running test and fail afterwards.
2015-09-09 07:58:14 +02:00
Florian Bruhin
09c265ddb0
logfail: Switch tests to subprocess pytest runs.
...
It seems they're much more reliable this way.
2015-09-09 07:58:14 +02:00
Florian Bruhin
f7e40f73ab
logfail: Update tests to use testdir.
...
This makes more sophisticated tests easier.
2015-09-09 07:58:14 +02:00
Florian Bruhin
f5d9e967ef
logfail: Rename capturelog module.
...
When trying to use this as conftest for the updated tests, pytest_* would be
interpreted as hook otherwise.
2015-09-09 07:58:14 +02:00
Florian Bruhin
376edd739b
Remove double changelog entry.
2015-09-07 10:12:48 +02:00
Florian Bruhin
e81432fd6e
Update changelog.
2015-09-07 10:05:28 +02:00
Florian Bruhin
6a0994038e
Start working on #888 (new IPC path).
2015-09-06 19:50:22 +02:00
Florian Bruhin
bfd8faafef
Add a protocol version to IPC.
...
Fixes #909 .
2015-09-06 18:43:24 +02:00
Florian Bruhin
b95fd2c814
Test raw json data for IPC.
2015-09-06 18:06:23 +02:00
Florian Bruhin
e9608a6aea
Add qutebrowser version to IPC data.
...
See #909 .
2015-09-06 18:06:03 +02:00
Florian Bruhin
1832d44da1
Use Travis/AppVeyor badges in README.
2015-09-06 17:21:00 +02:00
Florian Bruhin
cc80cfdfd6
Add missing return.
2015-09-06 17:15:13 +02:00
Florian Bruhin
ef9e1bef1b
Improve performance when adding new history item.
...
Fixes #919 .
There were two issues here:
- CompletionWidget didn't delete the old model when setting a new one. This
means filterAcceptsRow was called for models which aren't even used anymore.
- setChild was used instead of appendRow for the BaseCompletionModel, which
caused Qt to call filterAcceptsRow once for every item of the completion
model instead of only once.
2015-09-06 16:59:43 +02:00
Florian Bruhin
02a539f2d7
Rename TestError to Error.
2015-09-06 16:43:23 +02:00
Florian Bruhin
bf9a897ce8
Skip some more IPC tests on Windows.
2015-09-06 16:42:44 +02:00
Florian Bruhin
9521da3c73
Fix error output with --no-err-windows.
2015-09-04 08:04:18 +02:00