summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-09-19 12:36:26 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-09-19 12:36:26 +0200
commiteb8ebf8c834beec1198999cf21b9223482db4c43 (patch)
tree126217ab7bcf0f3ce55fdb497e33d49ccd72bdf2 /client
parent3934c771b944e30e278f53be4480c6e5d24643bc (diff)
downloadjasper-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.
Diffstat (limited to 'client')
-rw-r--r--client/test.py3
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)