Skip to content

Commit c527277

Browse files
committed
Fix re-casting of options
1 parent 5663da6 commit c527277

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

reframe/frontend/cli.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,16 +1175,14 @@ def module_unuse(*paths):
11751175
parsed_job_options.append(f'--{optstr} {valstr}')
11761176

11771177
exec_policy.sched_options = parsed_job_options
1178-
max_retries = int(options.max_retries)
1179-
1180-
max_failures = int(options.maxfail)
1181-
if max_failures < 0:
1178+
if options.maxfail < 0:
11821179
raise errors.ConfigError(
11831180
f'--maxfail should be a non-negative integer: '
11841181
f'{options.maxfail!r}'
11851182
)
11861183

1187-
runner = Runner(exec_policy, printer, max_retries, max_failures)
1184+
runner = Runner(exec_policy, printer, options.max_retries,
1185+
options.maxfail)
11881186
try:
11891187
time_start = time.time()
11901188
session_info['time_start'] = time.strftime(

0 commit comments

Comments
 (0)