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 <kecarter@redhat.com>
This commit is contained in:
Kevin Carter 2020-10-08 14:37:23 -05:00
parent 6b6f4b5fb3
commit d45c757665
No known key found for this signature in database
GPG Key ID: CE94BD890A47B20A
1 changed files with 1 additions and 0 deletions

View File

@ -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" ${@:-}