test.py expects its current working directory to be the directory it exists in (i.e. t/). test.py now ensures the correct working directory by calling os.chdir().
Signed-off-by: Peter Grayson <[email protected]> --- t/test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/test.py b/t/test.py index e2241059..7598ebe8 100644 --- a/t/test.py +++ b/t/test.py @@ -150,6 +150,9 @@ def start_cleaner(q): threading.Thread(target=w).start() def main(): + this_dir = os.path.dirname(__file__) + if this_dir: + os.chdir(this_dir) p = optparse.OptionParser() p.add_option("-j", "--jobs", type="int", help="number of tests to run in parallel") -- 2.12.0 _______________________________________________ stgit-users mailing list [email protected] https://mail.gna.org/listinfo/stgit-users
