From 9b033987ef97ad3504887508ba455951255cd36d Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Wed, 15 Mar 2023 02:29:12 -0500 Subject: [PATCH] Renamed --gdb-case => --gdb-permutation for correctness --- scripts/bench.py | 6 +++--- scripts/test.py | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/bench.py b/scripts/bench.py index cfa5413a..76237385 100755 --- a/scripts/bench.py +++ b/scripts/bench.py @@ -1227,7 +1227,7 @@ def run(runner, bench_ids=[], **args): # drop into gdb? if failures and (args.get('gdb') - or args.get('gdb_case') + or args.get('gdb_perm') or args.get('gdb_main')): failure = failures[0] cmd = find_runner(runner, failure.id, **args) @@ -1241,7 +1241,7 @@ def run(runner, bench_ids=[], **args): '-ex', 'break %s:%d' % (path, lineno), '-ex', 'run', '--args'] - elif args.get('gdb_case'): + elif args.get('gdb_perm'): path, lineno = find_path(runner, failure.id, **args) cmd[:0] = args['gdb_path'] + [ '-ex', 'break %s:%d' % (path, lineno), @@ -1428,7 +1428,7 @@ if __name__ == "__main__": action='store_true', help="Drop into gdb on bench failure.") bench_parser.add_argument( - '--gdb-case', + '--gdb-perm', '--gdb-permutation', action='store_true', help="Drop into gdb on bench failure but stop at the beginning " "of the failing bench case.") diff --git a/scripts/test.py b/scripts/test.py index f0095cd7..1c52bf01 100755 --- a/scripts/test.py +++ b/scripts/test.py @@ -1227,7 +1227,7 @@ def run(runner, test_ids=[], **args): # drop into gdb? if failures and (args.get('gdb') - or args.get('gdb_case') + or args.get('gdb_perm') or args.get('gdb_main') or args.get('gdb_pl') is not None or args.get('gdb_pl_before') @@ -1244,7 +1244,7 @@ def run(runner, test_ids=[], **args): '-ex', 'break %s:%d' % (path, lineno), '-ex', 'run', '--args'] - elif args.get('gdb_case'): + elif args.get('gdb_perm'): path, lineno = find_path(runner, failure.id, **args) cmd[:0] = args['gdb_path'] + [ '-ex', 'break %s:%d' % (path, lineno), @@ -1470,10 +1470,10 @@ if __name__ == "__main__": action='store_true', help="Drop into gdb on test failure.") test_parser.add_argument( - '--gdb-case', + '--gdb-perm', '--gdb-permutation', action='store_true', help="Drop into gdb on test failure but stop at the beginning " - "of the failing test case.") + "of the failing test permutation.") test_parser.add_argument( '--gdb-main', action='store_true',