mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
2nd attempt at making regression-wally.py able to be run from a different dir
This commit is contained in:
parent
979580b1e7
commit
8f73c1df9e
@ -80,6 +80,7 @@ def run_test_case(config):
|
|||||||
logname = "logs/wally_"+config.name+".log"
|
logname = "logs/wally_"+config.name+".log"
|
||||||
cmd = config.cmd.format(logname)
|
cmd = config.cmd.format(logname)
|
||||||
print(cmd)
|
print(cmd)
|
||||||
|
os.chdir(regressionDir)
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
if search_log_for_text(config.grepstr, logname):
|
if search_log_for_text(config.grepstr, logname):
|
||||||
print("%s: Success" % config.name)
|
print("%s: Success" % config.name)
|
||||||
@ -93,11 +94,13 @@ def main():
|
|||||||
"""Run the tests and count the failures"""
|
"""Run the tests and count the failures"""
|
||||||
global configs
|
global configs
|
||||||
try:
|
try:
|
||||||
|
os.chdir(regressionDir)
|
||||||
os.mkdir("logs")
|
os.mkdir("logs")
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if '-makeTests' in sys.argv:
|
if '-makeTests' in sys.argv:
|
||||||
|
os.chdir(regressionDir)
|
||||||
os.system('./make-tests.sh | tee ./logs/make-tests.log')
|
os.system('./make-tests.sh | tee ./logs/make-tests.log')
|
||||||
|
|
||||||
if '-all' in sys.argv:
|
if '-all' in sys.argv:
|
||||||
|
Loading…
Reference in New Issue
Block a user