Set concurrency default value

This commit sets the default value 0 for tempest run command.
Because stestr's run_command() requires an int value for that, but we
passes `None` if users don't specify a concurrency value. We found that
behavior with recent stestr change[0]. But we also have the bug in
tempest side.

[0] https://github.com/mtreinish/stestr/issues/231

Change-Id: I83f76acb6a106f7401904a910a5dced47c2db839
This commit is contained in:
Masayuki Igawa 2019-03-06 22:01:37 +09:00
parent 57491eaa7e
commit 13c588373c
No known key found for this signature in database
GPG Key ID: 290F53EDC899BF89
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ class TempestRun(command.Command):
default=False)
# execution args
parser.add_argument('--concurrency', '-w',
type=int,
type=int, default=0,
help="The number of workers to use, defaults to "
"the number of cpus")
parallel = parser.add_mutually_exclusive_group()