Set concurrency to 0
until refstack-client uses tempest tag which contains default value for concurrency it needs to be set here. Change-Id: Ic33639f39a21d5827c9ffe14fc76a47a36c7b47f
This commit is contained in:
@@ -523,6 +523,13 @@ class RefstackClient:
|
|||||||
cmd = [wrapper, 'tempest', 'run']
|
cmd = [wrapper, 'tempest', 'run']
|
||||||
if not self.args.parallel:
|
if not self.args.parallel:
|
||||||
cmd.append('--serial')
|
cmd.append('--serial')
|
||||||
|
# TODO(mkopec) until refstack-client uses tempest tag which contains
|
||||||
|
# the following change https://review.openstack.org/#/c/641349/
|
||||||
|
# let's hardcode concurrency here, when the change is merged, the
|
||||||
|
# value of concurrency will be set as default in tempest so the
|
||||||
|
# following two lines can be deleted
|
||||||
|
cmd.append('--concurrency')
|
||||||
|
cmd.append('0')
|
||||||
# If a test list was specified, have it take precedence.
|
# If a test list was specified, have it take precedence.
|
||||||
if self.args.test_list:
|
if self.args.test_list:
|
||||||
self.logger.info("Normalizing test list...")
|
self.logger.info("Normalizing test list...")
|
||||||
|
@@ -573,7 +573,8 @@ class TestRefstackClient(unittest.TestCase):
|
|||||||
|
|
||||||
mock_popen.assert_called_with(
|
mock_popen.assert_called_with(
|
||||||
['%s/tools/with_venv.sh' % self.test_path, 'tempest', 'run',
|
['%s/tools/with_venv.sh' % self.test_path, 'tempest', 'run',
|
||||||
'--serial', '--regex', 'tempest.api.compute'],
|
'--serial', '--concurrency', '0', '--regex',
|
||||||
|
'tempest.api.compute'],
|
||||||
stderr=None
|
stderr=None
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -604,7 +605,8 @@ class TestRefstackClient(unittest.TestCase):
|
|||||||
client.test()
|
client.test()
|
||||||
mock_popen.assert_called_with(
|
mock_popen.assert_called_with(
|
||||||
['%s/tools/with_venv.sh' % self.test_path, 'tempest', 'run',
|
['%s/tools/with_venv.sh' % self.test_path, 'tempest', 'run',
|
||||||
'--serial', '--regex', 'tempest.api.compute'],
|
'--serial', '--concurrency', '0', '--regex',
|
||||||
|
'tempest.api.compute'],
|
||||||
stderr=None
|
stderr=None
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -637,7 +639,8 @@ class TestRefstackClient(unittest.TestCase):
|
|||||||
client.test()
|
client.test()
|
||||||
mock_popen.assert_called_with(
|
mock_popen.assert_called_with(
|
||||||
['%s/tools/with_venv.sh' % self.test_path, 'tempest', 'run',
|
['%s/tools/with_venv.sh' % self.test_path, 'tempest', 'run',
|
||||||
'--serial', '--regex', 'tempest.api.compute'],
|
'--serial', '--concurrency', '0', '--regex',
|
||||||
|
'tempest.api.compute'],
|
||||||
stderr=None
|
stderr=None
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -678,7 +681,8 @@ class TestRefstackClient(unittest.TestCase):
|
|||||||
mock_whitelist.assert_called_with('test-list.txt')
|
mock_whitelist.assert_called_with('test-list.txt')
|
||||||
mock_popen.assert_called_with(
|
mock_popen.assert_called_with(
|
||||||
['%s/tools/with_venv.sh' % self.test_path, 'tempest', 'run',
|
['%s/tools/with_venv.sh' % self.test_path, 'tempest', 'run',
|
||||||
'--serial', '--whitelist_file', '/tmp/some-list'],
|
'--serial', '--concurrency', '0', '--whitelist_file',
|
||||||
|
'/tmp/some-list'],
|
||||||
stderr=None
|
stderr=None
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -738,7 +742,8 @@ class TestRefstackClient(unittest.TestCase):
|
|||||||
|
|
||||||
mock_popen.assert_called_with(
|
mock_popen.assert_called_with(
|
||||||
['%s/tools/with_venv.sh' % self.test_path, 'tempest', 'run',
|
['%s/tools/with_venv.sh' % self.test_path, 'tempest', 'run',
|
||||||
'--serial', '--regex', 'tempest.api.compute'],
|
'--serial', '--concurrency', '0', '--regex',
|
||||||
|
'tempest.api.compute'],
|
||||||
stderr=None
|
stderr=None
|
||||||
)
|
)
|
||||||
# Since '1' is in the next-stream file, we expect the JSON output file
|
# Since '1' is in the next-stream file, we expect the JSON output file
|
||||||
|
Reference in New Issue
Block a user