From d45c757665cb936a828db963bf9a0db4718d5c8f Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Thu, 8 Oct 2020 14:37:23 -0500 Subject: [PATCH] Add constraint for local testing This change adds a constraint argument to the local test script. This will ensure we're not installing un-contained requirements when attempting to reproduce the CI. Change-Id: I6bc16981d9fa725278477ef6c82ab4fc898cf46e Signed-off-by: Kevin Carter --- scripts/run-local-test | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/run-local-test b/scripts/run-local-test index 4c3fcf1a3..1983ea8ed 100755 --- a/scripts/run-local-test +++ b/scripts/run-local-test @@ -32,6 +32,7 @@ export UPPER_CONSTRAINTS_FILE=${UPPER_CONSTRAINTS_FILE:-"https://opendev.org/ope function run_pip { "${HOME}/test-python/bin/pip" install \ -c "${UPPER_CONSTRAINTS_FILE}" \ + -c "${PROJECT_DIR}/ansible-requirements.txt" \ -r "${PROJECT_DIR}/requirements.txt" \ -r "${PROJECT_DIR}/test-requirements.txt" \ -r "${PROJECT_DIR}/molecule-requirements.txt" ${@:-}