fix bug in testing framework leaving tests in random working folders.

This commit is contained in:
Tom van Dijck 2017-07-04 13:34:49 -07:00
parent 5cc981d590
commit 31df5d9604

View File

@ -76,6 +76,7 @@
function _.runTest(test)
local cwd = os.getcwd()
local hooks = _.installTestingHooks()
_TESTS_DIR = test.suite._TESTS_DIR
@ -92,6 +93,7 @@
err = err or terr
_.removeTestingHooks(hooks)
os.chdir(cwd)
if ok then
return 1, 0