Add more diagnostics to run-tests.py

develop
lethosor 2019-01-02 17:34:08 -05:00
parent 8063717503
commit 13dfa130d7
1 changed files with 5 additions and 0 deletions

@ -14,6 +14,9 @@ os.chdir(sys.argv[1])
if os.path.exists(test_stage):
os.remove(test_stage)
print(os.getcwd())
print(os.listdir('.'))
tries = 0
while True:
tries += 1
@ -33,3 +36,5 @@ while True:
process = subprocess.Popen([dfhack], stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
process.communicate()
if process.returncode != 0:
print('DF exited with ' + repr(process.returncode))