Renamed --gdb-case => --gdb-permutation for correctness
This commit is contained in:
+3
-3
@@ -1227,7 +1227,7 @@ def run(runner, bench_ids=[], **args):
|
|||||||
|
|
||||||
# drop into gdb?
|
# drop into gdb?
|
||||||
if failures and (args.get('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_main')):
|
||||||
failure = failures[0]
|
failure = failures[0]
|
||||||
cmd = find_runner(runner, failure.id, **args)
|
cmd = find_runner(runner, failure.id, **args)
|
||||||
@@ -1241,7 +1241,7 @@ def run(runner, bench_ids=[], **args):
|
|||||||
'-ex', 'break %s:%d' % (path, lineno),
|
'-ex', 'break %s:%d' % (path, lineno),
|
||||||
'-ex', 'run',
|
'-ex', 'run',
|
||||||
'--args']
|
'--args']
|
||||||
elif args.get('gdb_case'):
|
elif args.get('gdb_perm'):
|
||||||
path, lineno = find_path(runner, failure.id, **args)
|
path, lineno = find_path(runner, failure.id, **args)
|
||||||
cmd[:0] = args['gdb_path'] + [
|
cmd[:0] = args['gdb_path'] + [
|
||||||
'-ex', 'break %s:%d' % (path, lineno),
|
'-ex', 'break %s:%d' % (path, lineno),
|
||||||
@@ -1428,7 +1428,7 @@ if __name__ == "__main__":
|
|||||||
action='store_true',
|
action='store_true',
|
||||||
help="Drop into gdb on bench failure.")
|
help="Drop into gdb on bench failure.")
|
||||||
bench_parser.add_argument(
|
bench_parser.add_argument(
|
||||||
'--gdb-case',
|
'--gdb-perm', '--gdb-permutation',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help="Drop into gdb on bench failure but stop at the beginning "
|
help="Drop into gdb on bench failure but stop at the beginning "
|
||||||
"of the failing bench case.")
|
"of the failing bench case.")
|
||||||
|
|||||||
+4
-4
@@ -1227,7 +1227,7 @@ def run(runner, test_ids=[], **args):
|
|||||||
|
|
||||||
# drop into gdb?
|
# drop into gdb?
|
||||||
if failures and (args.get('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_main')
|
||||||
or args.get('gdb_pl') is not None
|
or args.get('gdb_pl') is not None
|
||||||
or args.get('gdb_pl_before')
|
or args.get('gdb_pl_before')
|
||||||
@@ -1244,7 +1244,7 @@ def run(runner, test_ids=[], **args):
|
|||||||
'-ex', 'break %s:%d' % (path, lineno),
|
'-ex', 'break %s:%d' % (path, lineno),
|
||||||
'-ex', 'run',
|
'-ex', 'run',
|
||||||
'--args']
|
'--args']
|
||||||
elif args.get('gdb_case'):
|
elif args.get('gdb_perm'):
|
||||||
path, lineno = find_path(runner, failure.id, **args)
|
path, lineno = find_path(runner, failure.id, **args)
|
||||||
cmd[:0] = args['gdb_path'] + [
|
cmd[:0] = args['gdb_path'] + [
|
||||||
'-ex', 'break %s:%d' % (path, lineno),
|
'-ex', 'break %s:%d' % (path, lineno),
|
||||||
@@ -1470,10 +1470,10 @@ if __name__ == "__main__":
|
|||||||
action='store_true',
|
action='store_true',
|
||||||
help="Drop into gdb on test failure.")
|
help="Drop into gdb on test failure.")
|
||||||
test_parser.add_argument(
|
test_parser.add_argument(
|
||||||
'--gdb-case',
|
'--gdb-perm', '--gdb-permutation',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help="Drop into gdb on test failure but stop at the beginning "
|
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(
|
test_parser.add_argument(
|
||||||
'--gdb-main',
|
'--gdb-main',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
|
|||||||
Reference in New Issue
Block a user