From eb8ebf8c834beec1198999cf21b9223482db4c43 Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 19 Sep 2014 12:36:26 +0200 Subject: Use os.chdir inside client/test.py Otherwise, the transcribe check will fail, if you execute test.py from outside the client directory, e.g. via `python2 client/test.py` It's a mess that we need os.chdir at all, but hopefully we can remove this soon, if absolute paths are used everywhere. --- client/test.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client') diff --git a/client/test.py b/client/test.py index 49f3109..0160b76 100644 --- a/client/test.py +++ b/client/test.py @@ -233,6 +233,9 @@ if __name__ == '__main__': help='runs a subset of the tests (only requires Python dependencies)') args = parser.parse_args() + # Change CWD to jasperpath.LIB_PATH + os.chdir(jasperpath.LIB_PATH) + test_cases = [TestBrain, TestModules, TestVocabCompiler] if not args.light: test_cases.append(TestG2P) -- cgit v1.3.1