mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Tests: Fix --gdb with one test (#5466)
This commit is contained in:
parent
62a58f420c
commit
c7e1358bb7
@ -2801,19 +2801,19 @@ if Args.debug:
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
logging.info("In driver.py, ARGV=" + ' '.join(sys.argv))
|
||||
|
||||
interactive_debugger = Args.gdb or Args.gdbsim or Args.rr or Args.rrsim
|
||||
if Args.jobs > 1 and interactive_debugger:
|
||||
sys.exit("%Error: Unable to use -j > 1 with --gdb* and --rr* options")
|
||||
|
||||
if Args.golden:
|
||||
os.environ['HARNESS_UPDATE_GOLDEN'] = '1'
|
||||
if Args.jobs == 0:
|
||||
Args.jobs = calc_jobs()
|
||||
Args.jobs = 1 if interactive_debugger else calc_jobs()
|
||||
if not Args.scenarios:
|
||||
Args.scenarios = []
|
||||
Args.scenarios.append('dist')
|
||||
Args.scenarios.append('vlt')
|
||||
|
||||
interactive_debugger = Args.gdb or Args.gdbsim or Args.rr or Args.rrsim
|
||||
if Args.jobs > 1 and interactive_debugger:
|
||||
sys.exit("%Error: Unable to use -j > 1 with --gdb* and --rr* options")
|
||||
|
||||
forker = Forker(Args.jobs)
|
||||
|
||||
Test_Dirs = ["t"]
|
||||
|
@ -14,4 +14,4 @@ os.chdir(os.path.dirname(os.path.realpath(__file__)) + "/..")
|
||||
# Avoid chdir leaving the .. which confuses later commands
|
||||
os.environ['PWD'] = os.getcwd()
|
||||
args = list(map(lambda arg: re.sub(r'.*/test_regress/', '', arg), sys.argv))
|
||||
os.execl("./driver.py", "--bootstrapped", *args)
|
||||
os.execl("./driver.py", "driver.py", *args)
|
||||
|
Loading…
Reference in New Issue
Block a user