From ce7ebd30e867791aff858aeb1dbcd3a62a908e46 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 1 Oct 2019 08:58:03 -0700 Subject: [PATCH] [stable-2.9] Limit Shippable matrix check to ansible repo. (cherry picked from commit ada02f1966efa1957587bd9d763a5c86fdb19602) Co-authored-by: Matt Clay --- test/utils/shippable/check_matrix.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/utils/shippable/check_matrix.py b/test/utils/shippable/check_matrix.py index c522f3ab98a..6a79d702334 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()