[Test] Allow 'runCythonTests' to be called from any working directory

This commit is contained in:
Ray Speth
2014-03-24 04:03:35 +00:00
parent de8a19ed0f
commit 1fd98a2f08
2 changed files with 11 additions and 6 deletions
+1 -2
View File
@@ -93,8 +93,7 @@ def addPythonTest(testname, subdir, script, interpreter, outfile,
print k,v
environ[k] = v
code = subprocess.call([env.subst(interpreter), source[0].abspath] + args.split(),
env=environ,
cwd=workDir)
env=environ)
if not code:
# Test was successful
open(target[0].path, 'w').write(time.asctime()+'\n')