Skip to content

Commit

Permalink
mesontest: Use setup timeout multiplier if not specified
Browse files Browse the repository at this point in the history
The setup's timeout multiplier will always be set, and it will default
to 1.0, so just use that.

Without this, the setup's timeout multiplier was always ignored.
  • Loading branch information
nirbheek committed Feb 19, 2017
1 parent 5bf4338 commit 06d6156
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mesontest.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def determine_worker_count():
help='Do not redirect stdout and stderr')
parser.add_argument('-q', '--quiet', default=False, action='store_true',
help='Produce less output to the terminal.')
parser.add_argument('-t', '--timeout-multiplier', type=float, default=1.0,
parser.add_argument('-t', '--timeout-multiplier', type=float, default=None,
help='Define a multiplier for test timeout, for example '
' when running tests in particular conditions they might take'
' more time to execute.')
Expand Down Expand Up @@ -563,6 +563,8 @@ def run(args):
global_env = merge_suite_options(options)
else:
global_env = build.EnvironmentVariables()
if options.timeout_multiplier is None:
options.timeout_multiplier = 1

setattr(options, 'global_env', global_env)

Expand Down

0 comments on commit 06d6156

Please sign in to comment.