From 733be110a2724d9ec26087179bc52d8c3a47267d Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Fri, 6 Jul 2018 07:27:26 -0700 Subject: [PATCH 1/2] Add negation to return code so tests fail or pass properly. --- compiler/tests/regress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/tests/regress.py b/compiler/tests/regress.py index abc1af4b..daf9f3b6 100755 --- a/compiler/tests/regress.py +++ b/compiler/tests/regress.py @@ -27,5 +27,5 @@ modules = map(__import__, moduleNames) suite = unittest.TestSuite() load = unittest.defaultTestLoader.loadTestsFromModule suite.addTests(map(load, modules)) -ret = unittest.TextTestRunner(verbosity=2).run(suite).wasSuccessful() +ret = not unittest.TextTestRunner(verbosity=2).run(suite).wasSuccessful() sys.exit(ret) From 5d32a426c4a41a02883121491fffabfc968ec052 Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Fri, 6 Jul 2018 07:34:38 -0700 Subject: [PATCH 2/2] Change test sram path so jobs can be simultaneously run. --- compiler/tests/30_openram_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/tests/30_openram_test.py b/compiler/tests/30_openram_test.py index e37509d1..02fa4759 100755 --- a/compiler/tests/30_openram_test.py +++ b/compiler/tests/30_openram_test.py @@ -21,7 +21,7 @@ class openram_test(openram_test): debug.info(1, "Testing top-level openram.py with 2-bit, 16 word SRAM.") out_file = "testsram" # make a temp directory for output - out_path = "/tmp/testsram_{0}".format(OPTS.tech_name) + out_path = "/tmp/testsram_{0}_{1}_{2}/".format(OPTS.tech_name,getpass.getuser(),os.getpid()) # make sure we start without the files existing if os.path.exists(out_path):