Skip to content

Commit 873ed11

Browse files
authored
Merge pull request #3508 from vkarak/bugfix/fix-n-option-results-db
[bugfix] Make `-n` option syntax consistent across test filtering and results storage queries
2 parents 6a33b94 + 6273a87 commit 873ed11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reframe/frontend/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ def restrict_logging():
10281028
sys.exit(0)
10291029

10301030
if options.list_stored_testcases:
1031-
namepatt = '|'.join(options.names)
1031+
namepatt = '|'.join(n.replace('%', ' %') for n in options.names)
10321032
with exit_gracefully_on_error('failed to retrieve test case data',
10331033
printer):
10341034
filt = options.filter_expr[-1] if options.filter_expr else None
@@ -1050,7 +1050,7 @@ def restrict_logging():
10501050
if options.describe_stored_testcases:
10511051
# Restore logging level
10521052
printer.setLevel(logging.INFO)
1053-
namepatt = '|'.join(options.names)
1053+
namepatt = '|'.join(n.replace('%', ' %') for n in options.names)
10541054
with exit_gracefully_on_error('failed to retrieve test case data',
10551055
printer):
10561056
filt = options.filter_expr[-1] if options.filter_expr else None
@@ -1068,7 +1068,7 @@ def restrict_logging():
10681068
sys.exit(0)
10691069

10701070
if options.performance_compare:
1071-
namepatt = '|'.join(options.names)
1071+
namepatt = '|'.join(n.replace('%', ' %') for n in options.names)
10721072
with exit_gracefully_on_error('failed to generate performance report',
10731073
printer):
10741074
filt = [None, None]

0 commit comments

Comments
 (0)