summaryrefslogtreecommitdiffstats
path: root/test/runner/lib/classification.py
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2017-11-21 22:33:40 +0100
committerMatt Clay <matt@mystile.com>2017-11-22 00:02:07 +0100
commit6f4731ef11db79b09639af12682e562e42185d6f (patch)
treec0c4f61412c5370a81f8f100fad9c8316434bc35 /test/runner/lib/classification.py
parentremoved superfluous `type` field from RecordSet constructor (#33165) (diff)
downloadansible-6f4731ef11db79b09639af12682e562e42185d6f.tar.xz
ansible-6f4731ef11db79b09639af12682e562e42185d6f.zip
Force all tests to run on docker image updates.
Diffstat (limited to 'test/runner/lib/classification.py')
-rw-r--r--test/runner/lib/classification.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/runner/lib/classification.py b/test/runner/lib/classification.py
index d573738f6a..c935f1ab12 100644
--- a/test/runner/lib/classification.py
+++ b/test/runner/lib/classification.py
@@ -487,6 +487,10 @@ class PathMapper(object):
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/'):
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
-def all_tests(args):
+def all_tests(args, force=False):
"""
:type args: TestConfig
+ :type force: bool
: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 {
'sanity': 'all',