summaryrefslogtreecommitdiffstats
path: root/test/utils
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2019-10-01 17:58:03 +0200
committerMatt Clay <matt@mystile.com>2019-10-01 18:53:19 +0200
commitada02f1966efa1957587bd9d763a5c86fdb19602 (patch)
treead125f2aba07b85022acff038cffe617bb95d4a5 /test/utils
parentchanged capitals vSphere (#62975) (diff)
downloadansible-ada02f1966efa1957587bd9d763a5c86fdb19602.tar.xz
ansible-ada02f1966efa1957587bd9d763a5c86fdb19602.zip
Limit Shippable matrix check to ansible repo.
Diffstat (limited to 'test/utils')
-rwxr-xr-xtest/utils/shippable/check_matrix.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/utils/shippable/check_matrix.py b/test/utils/shippable/check_matrix.py
index c522f3ab98..6a79d70233 100755
--- a/test/utils/shippable/check_matrix.py
+++ b/test/utils/shippable/check_matrix.py
@@ -25,6 +25,13 @@ except ImportError:
def main(): # type: () -> None
"""Main entry point."""
+ repo_full_name = os.environ['REPO_FULL_NAME']
+ required_repo_full_name = 'ansible/ansible'
+
+ if repo_full_name != required_repo_full_name:
+ sys.stderr.write('Skipping matrix check on repo "%s" which is not "%s".\n' % (repo_full_name, required_repo_full_name))
+ return
+
with open('shippable.yml', 'rb') as yaml_file:
yaml = yaml_file.read().decode('utf-8').splitlines()