diff --git a/compiler/tests/testutils.py b/compiler/tests/testutils.py index eaac38e2..99d534d0 100644 --- a/compiler/tests/testutils.py +++ b/compiler/tests/testutils.py @@ -51,9 +51,9 @@ class openram_test(unittest.TestCase): drc_result=verify.run_drc(a.name, tempgds, extract=True, final_verification=final_verification) # Always run LVS if we are using magic - if "magic" in OPTS.drc_exe: + if "magic" in OPTS.drc_exe or drc_result == 0: lvs_result=verify.run_lvs(a.name, tempgds, tempspice, final_verification=final_verification) - + # Only allow DRC to fail and LVS to pass if we are using magic if "magic" in OPTS.drc_exe and lvs_result == 0 and drc_result != 0: #zip_file = "/tmp/{0}_{1}".format(a.name,os.getpid())