From b40a17f4a5cda79d76b7d764bc43e7942a3c5b76 Mon Sep 17 00:00:00 2001 From: Eren Dogan Date: Fri, 2 Dec 2022 13:00:12 -0800 Subject: [PATCH] Fix log file for sram_compiler tests --- compiler/tests/30_openram_back_end_test.py | 13 +++++++------ compiler/tests/30_openram_front_end_test.py | 12 ++++++------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/compiler/tests/30_openram_back_end_test.py b/compiler/tests/30_openram_back_end_test.py index a7dddd61..ab884d0c 100755 --- a/compiler/tests/30_openram_back_end_test.py +++ b/compiler/tests/30_openram_back_end_test.py @@ -59,12 +59,12 @@ class openram_back_end_test(openram_test): else: 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) - cmd = "{0} -o {1} -p {2} {3} {4} 2>&1 > {5}/output.log".format(exe_name, - out_file, - out_path, - options, - config_name, - out_path) + cmd = "{0} -o {1} -p {2} {3} {4} > {5}/output.log".format(exe_name, + out_file, + out_path, + options, + config_name, + out_path) debug.info(1, cmd) os.system(cmd) @@ -105,6 +105,7 @@ class openram_back_end_test(openram_test): openram.end_openram() + # run the test from the command line if __name__ == "__main__": (OPTS, args) = openram.parse_args() diff --git a/compiler/tests/30_openram_front_end_test.py b/compiler/tests/30_openram_front_end_test.py index 81285a7a..7f5fb76c 100755 --- a/compiler/tests/30_openram_front_end_test.py +++ b/compiler/tests/30_openram_front_end_test.py @@ -59,12 +59,12 @@ class openram_front_end_test(openram_test): else: 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) - cmd = "{0} -n -o {1} -p {2} {3} {4} 2>&1 > {5}/output.log".format(exe_name, - out_file, - out_path, - options, - config_name, - out_path) + cmd = "{0} -n -o {1} -p {2} {3} {4} > {5}/output.log".format(exe_name, + out_file, + out_path, + options, + config_name, + out_path) debug.info(1, cmd) os.system(cmd)