Force all tests to run on docker image updates.
This commit is contained in:
parent
e8910e4bc6
commit
6f4731ef11
1 changed files with 10 additions and 2 deletions
|
@ -487,6 +487,10 @@ class PathMapper(object):
|
||||||
|
|
||||||
test_path = os.path.dirname(test_path)
|
test_path = os.path.dirname(test_path)
|
||||||
|
|
||||||
|
if path.startswith('test/runner/completion/'):
|
||||||
|
if path == 'test/runner/completion/docker.txt':
|
||||||
|
return all_tests(self.args, force=True) # force all tests due to risk of breaking changes in new test environment
|
||||||
|
|
||||||
if path.startswith('test/runner/docker/'):
|
if path.startswith('test/runner/docker/'):
|
||||||
return minimal # not used by tests, only used to build the default container
|
return minimal # not used by tests, only used to build the default container
|
||||||
|
|
||||||
|
@ -585,12 +589,16 @@ class PathMapper(object):
|
||||||
return None # unknown, will result in fall-back to run all tests
|
return None # unknown, will result in fall-back to run all tests
|
||||||
|
|
||||||
|
|
||||||
def all_tests(args):
|
def all_tests(args, force=False):
|
||||||
"""
|
"""
|
||||||
:type args: TestConfig
|
:type args: TestConfig
|
||||||
|
:type force: bool
|
||||||
:rtype: dict[str, str]
|
:rtype: dict[str, str]
|
||||||
"""
|
"""
|
||||||
integration_all_target = get_integration_all_target(args)
|
if force:
|
||||||
|
integration_all_target = 'all'
|
||||||
|
else:
|
||||||
|
integration_all_target = get_integration_all_target(args)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'sanity': 'all',
|
'sanity': 'all',
|
||||||
|
|
Loading…
Reference in a new issue