From f3f781917a3320ddfe247e7ec06887d9a224a5ef Mon Sep 17 00:00:00 2001 From: Satoe Imaishi Date: Tue, 28 Sep 2021 10:56:49 -0400 Subject: [PATCH] Skip pbr license check if ansible-runner isn't a released version --- awx/main/tests/functional/test_licenses.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/awx/main/tests/functional/test_licenses.py b/awx/main/tests/functional/test_licenses.py index 62a7291115..8ff2e72bfe 100644 --- a/awx/main/tests/functional/test_licenses.py +++ b/awx/main/tests/functional/test_licenses.py @@ -48,6 +48,7 @@ def test_python_and_js_licenses(): def read_api_requirements(path): ret = {} + skip_pbr_license_check = False for req_file in ['requirements.txt', 'requirements_git.txt']: fname = '%s/%s' % (path, req_file) @@ -65,7 +66,11 @@ def test_python_and_js_licenses(): name = name[:-4] if name == 'receptor': name = 'receptorctl' + if name == 'ansible-runner': + skip_pbr_license_check = True ret[name] = {'name': name, 'version': version} + if 'pbr' in ret and skip_pbr_license_check: + del ret['pbr'] return ret def read_ui_requirements(path):