Fix log file for sram_compiler tests

This commit is contained in:
Eren Dogan 2022-12-02 13:00:12 -08:00
parent 7396899769
commit b40a17f4a5
2 changed files with 13 additions and 12 deletions

View File

@ -59,7 +59,7 @@ class openram_back_end_test(openram_test):
else: else:
exe_name = "{0}{1}/../sram_compiler.py ".format(OPTS.coverage_exe, OPENRAM_HOME) exe_name = "{0}{1}/../sram_compiler.py ".format(OPTS.coverage_exe, OPENRAM_HOME)
config_name = "{0}/tests/configs/config_back_end.py".format(OPENRAM_HOME) config_name = "{0}/tests/configs/config_back_end.py".format(OPENRAM_HOME)
cmd = "{0} -o {1} -p {2} {3} {4} 2>&1 > {5}/output.log".format(exe_name, cmd = "{0} -o {1} -p {2} {3} {4} > {5}/output.log".format(exe_name,
out_file, out_file,
out_path, out_path,
options, options,
@ -105,6 +105,7 @@ class openram_back_end_test(openram_test):
openram.end_openram() openram.end_openram()
# run the test from the command line # run the test from the command line
if __name__ == "__main__": if __name__ == "__main__":
(OPTS, args) = openram.parse_args() (OPTS, args) = openram.parse_args()

View File

@ -59,7 +59,7 @@ class openram_front_end_test(openram_test):
else: else:
exe_name = "{0}{1}/../sram_compiler.py ".format(OPTS.coverage_exe, OPENRAM_HOME) exe_name = "{0}{1}/../sram_compiler.py ".format(OPTS.coverage_exe, OPENRAM_HOME)
config_name = "{0}/tests/configs/config_front_end.py".format(OPENRAM_HOME) config_name = "{0}/tests/configs/config_front_end.py".format(OPENRAM_HOME)
cmd = "{0} -n -o {1} -p {2} {3} {4} 2>&1 > {5}/output.log".format(exe_name, cmd = "{0} -n -o {1} -p {2} {3} {4} > {5}/output.log".format(exe_name,
out_file, out_file,
out_path, out_path,
options, options,