diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-19 12:36:26 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-19 12:36:26 +0200 |
| commit | eb8ebf8c834beec1198999cf21b9223482db4c43 (patch) | |
| tree | 126217ab7bcf0f3ce55fdb497e33d49ccd72bdf2 | |
| parent | 3934c771b944e30e278f53be4480c6e5d24643bc (diff) | |
| download | jasper-client-eb8ebf8c834beec1198999cf21b9223482db4c43.tar.gz jasper-client-eb8ebf8c834beec1198999cf21b9223482db4c43.zip | |
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.
| -rw-r--r-- | client/test.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |
