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): 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)