fix bug in testing framework leaving tests in random working folders.
This commit is contained in:
parent
5cc981d590
commit
31df5d9604
@ -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
|
||||
|
Reference in New Issue
Block a user