Commit Graph

2387 Commits

Author SHA1 Message Date
Foo 2d9e759f41 Make sure that check_group actually tests presense of some group
It was not much useful actually: e.g. it skipped the fact that warning:regular
highlight group was not defined.
2015-03-01 14:26:27 +03:00
Nikolai Aleksandrovich Pavlov d797a25fa8 Merge pull request #1319 from ZyX-I/zsh-resource
Use special function for appending to precmd_functions
2015-02-27 00:41:16 +03:00
ZyX 76f73687cf Use special function for appending to precmd_functions
This way there appear no duplicates.
2015-02-23 15:59:21 +03:00
Nikolai Aleksandrovich Pavlov ca6797055a Merge pull request #1317 from ZyX-I/gentoo-tests
Add some fixes for testing from ebuild
2015-02-21 20:33:05 +03:00
ZyX 3bf484de25 Break on self.quitting line
This may also cause python-3.2 pdb test to error out.
2015-02-21 19:55:39 +03:00
ZyX 68b43c59be Disable pdb PyPy tests completely
They currently fail for the reason that does not seem related to powerline
(though this problem did not occur before porting tests to pexpect, so this
should be somewhat related (somewhat: PyPy fails on code `return br'\u%04x'
% ord(c)` which is no a valid Python code (`%` can no longer be used with
`bytes()` obects), the whole situation only means that before using pexpect bug
in PyPy was not hit)).
2015-02-21 19:55:39 +03:00
ZyX 0058919c2b Remove blank lines from pdb output
It is the problem that causes python-3.2 pdb tests to fail on travis.
2015-02-21 19:55:39 +03:00
ZyX 9a89d4defa Do not special-case PyPy+ipython 2015-02-21 19:55:39 +03:00
ZyX 74e81bf788 Restore the timeout
There may be a reason for a test to take 3 minutes long, but there is no reason
for the test to take even half a minute long *without any output*.
2015-02-21 19:55:39 +03:00
ZyX 678faed4c2 Force destroying child after everything was done
Normally this line should not do anything useful.
2015-02-21 19:55:39 +03:00
ZyX b7c7d29aa0 Use “non-blocking” read and stop on TIMEOUT and EOF 2015-02-21 19:55:39 +03:00
ZyX deee40505d Do not repeat `if` more times then needed 2015-02-21 19:55:39 +03:00
ZyX 38a05b34d7 Do not use “which ipython” in echo since it is no longer relevant 2015-02-21 19:55:38 +03:00
ZyX 6a6991bcb4 Use 3 minutes for timeout 2015-02-21 19:55:38 +03:00
ZyX 7d98218b64 Do not wait, just .read()
.read() without arguments should read until EOF is received.
2015-02-21 19:55:38 +03:00
ZyX 0a87b558d9 Do not use child.wait(), it hangs 2015-02-21 19:55:38 +03:00
ZyX 0710f2760f Open log as binary file for writing
Child output is binary.
2015-02-21 16:11:04 +03:00
ZyX d5361337c1 Use script to test whether python zsh uses matches $PYTHON 2015-02-21 16:08:50 +03:00
ZyX 0f86bbf819 In place of running ipython executable run IPython module
This should fix the problem with using wrong ipython for tests.
2015-02-21 15:59:10 +03:00
ZyX b2ecb8ca84 Do not append PYTHON to *_REPO paths
$PYTHON variable is sometimes a full path which makes everything fail. It is
also useless move since directories are destroyed after tests and running two
test.sh scripts in parallel is not supported in any case.
2015-02-21 15:59:10 +03:00
ZyX bb6342c12a Tell tmux correct path to shell to use 2015-02-21 15:59:10 +03:00
ZyX d53c780071 Do not use absolute path for tmux socket
Absolute path is too long when using tests in ebuild.
2015-02-21 15:59:10 +03:00
ZyX 1e85f5df15 Disable vterm tests for PyPy completely 2015-02-21 15:59:10 +03:00
ZyX 22162a9656 Replace screen-based tests with pexpect-based tests
Currently works for all tests, but dash ones. Not much of a problem since dash
tests were disabled for being unstable.
2015-02-21 15:59:10 +03:00
ZyX 8524ee35e7 Ignore stderr from printf and env
socat may close pipe before they succeed to write something which results in

    env: write error: Broken pipe

(according to my experience leading printf’s always succeeds to write before
socat closes pipe).
2015-02-21 13:56:58 +03:00
ZyX 838a7c3b15 Fix the case when $0 is a path
I.e. something like /home/zyx/.vam/powerline/tests/shell/path/mksh.
2015-02-21 13:46:35 +03:00
ZyX e6b3bff50a Rerun main() only after running finally block 2015-02-21 04:35:56 +03:00
ZyX 5ecf50b4d8 Use different $HOME 2015-02-21 04:35:56 +03:00
ZyX 683691931d Make sure that there is at least one blank line after full log 2015-02-21 02:38:17 +03:00
ZyX fb0fba6c6d Do not modify $PATH and $LD_LIBRARY_PATH unless on travis 2015-02-21 02:38:17 +03:00
ZyX e7c381a63f Make sure USER and HOME variables are defined 2015-02-21 02:38:17 +03:00
ZyX be3fd917a9 Limit maximum amount of attempts to set register a 2015-02-21 02:38:16 +03:00
Nikolai Aleksandrovich Pavlov 6343ff0d8f Merge pull request #1316 from ZyX-I/full-non-travis-tests
Make it possible to run the whole test suite outside of travis
2015-02-21 00:59:25 +03:00
ZyX 75c5295a8c Adjust fish version tests for bot-ci-compiled fish 2015-02-21 00:08:12 +03:00
ZyX 0a0af212ad Allow specifying path to libvterm from environment
Uses POWERLINE_LIBVTERM environment variable.
2015-02-20 23:48:26 +03:00
ZyX 8629999379 Make sure that it is possible to use “system” libvterm.so 2015-02-20 23:47:18 +03:00
ZyX 02b31f36bd Only run fish tests for development version or for 2.1.2 and higher
Currently tests also test Vi key bindings support, but it is not in any release 
yet.
2015-02-20 23:37:13 +03:00
ZyX b349d6e390 Make sure that fish tests are not run for old fishes 2015-02-20 23:16:01 +03:00
ZyX 4d09f4fdb0 Do not run Vim tests if Vim is not available, fallback to system Vim 2015-02-20 22:39:50 +03:00
ZyX 8fff21d77b Set the default value for POWERLINE_TMUX_EXE 2015-02-20 22:36:39 +03:00
ZyX 1445b5a655 Merge branch 'update-qtile' into develop 2015-02-20 22:11:06 +03:00
ZyX 6cad7b0aae Add information about supported versions to documentation 2015-02-20 22:10:34 +03:00
ZyX 479e6afb2a Do not recreate layout if not needed 2015-02-20 22:09:59 +03:00
ZyX 5ee860ba8a Rename timeout to update_interval 2015-02-20 16:40:19 +03:00
ZyX 1742571b63 Use .timer_setup() to setup timer, fix error from cffi markup renderer
1. In qtile-0.9.1 .timeout_add() must be run after ._configure(). In qtile-0.8.0
   .timer_setup() is not run automatically.
2. New pango markup renderer (qtile-0.9.1) is not accepting unicode() objects,
   only str() ones as it converts them to cffi `char *`.

Fixes #1313
2015-02-20 16:39:50 +03:00
ZyX 86bb1616b4 Use new name and two sides in example configuration in documentation 2015-02-20 16:19:04 +03:00
ZyX bf228943ed Allow it to configure side 2015-02-20 16:15:21 +03:00
ZyX eda9d0d607 Move the closing parenthesis to the next line 2015-02-20 16:14:19 +03:00
ZyX 83e459c5f8 Do not use private classes for qtile, do not rename Powerline class 2015-02-20 16:09:06 +03:00
ZyX 6c966811af Update documentation 2015-02-20 16:07:52 +03:00