]> rtime.felk.cvut.cz Git - notmuch.git/commit
test: test_python: set PYTHONPATH to the python execution environment
authorTomi Ollila <tomi.ollila@iki.fi>
Wed, 25 May 2016 21:37:41 +0000 (00:37 +0300)
committerDavid Bremner <david@tethera.net>
Sat, 11 Jun 2016 16:12:08 +0000 (13:12 -0300)
commit2333a44ab7280a286af38e589a4bbc712bc3589a
tree298ace478f24ee285124776d6e2cf5f5383edecc
parentf0e5317bcdc856739c5107705e3bc86b31b01d38
test: test_python: set PYTHONPATH to the python execution environment

Place PYTHONPATH to the environment when python is executed in a way
that current shell environment is not affected. This also allows adding
the old value of PYTHONPATH to the end of the new value (otherwise it
would have been appended again and again when test_python is called).

At the same time, use -B option to avoid writing .pyc files to
bindings/python/* (which are not cleared out by distclean).

Drop the (unused) prefix code which preserved the original stdout of the
python program and opened sys.stdout to OUTPUT. In place of that there
is now note how (debug) information can be printed to original stdout.
test/test-lib.sh