From ada02f1966efa1957587bd9d763a5c86fdb19602 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 1 Oct 2019 08:58:03 -0700 Subject: Limit Shippable matrix check to ansible repo. --- test/utils/shippable/check_matrix.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/utils') 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() -- cgit v1.2.3