Tests: Fix --gdb with one test (#5466)

This commit is contained in:
Wilson Snyder 2024-09-19 17:06:32 -04:00
parent 62a58f420c
commit c7e1358bb7
2 changed files with 6 additions and 6 deletions

View File

@ -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"]

View File

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