2nd attempt at making regression-wally.py able to be run from a different dir

This commit is contained in:
bbracker 2021-12-07 13:13:30 -08:00
parent 979580b1e7
commit 8f73c1df9e

View File

@ -80,6 +80,7 @@ def run_test_case(config):
logname = "logs/wally_"+config.name+".log"
cmd = config.cmd.format(logname)
print(cmd)
os.chdir(regressionDir)
os.system(cmd)
if search_log_for_text(config.grepstr, logname):
print("%s: Success" % config.name)
@ -93,11 +94,13 @@ def main():
"""Run the tests and count the failures"""
global configs
try:
os.chdir(regressionDir)
os.mkdir("logs")
except:
pass
if '-makeTests' in sys.argv:
os.chdir(regressionDir)
os.system('./make-tests.sh | tee ./logs/make-tests.log')
if '-all' in sys.argv: