Merge "Fix tempest upper-constraints"
This commit is contained in:
@@ -119,7 +119,9 @@ function set_tempest_venv_constraints {
|
|||||||
local tmp_c
|
local tmp_c
|
||||||
tmp_c=$1
|
tmp_c=$1
|
||||||
if [[ $TEMPEST_VENV_UPPER_CONSTRAINTS == "master" ]]; then
|
if [[ $TEMPEST_VENV_UPPER_CONSTRAINTS == "master" ]]; then
|
||||||
(cd $REQUIREMENTS_DIR && git show master:upper-constraints.txt) > $tmp_c
|
(cd $REQUIREMENTS_DIR &&
|
||||||
|
git show master:upper-constraints.txt 2>/dev/null ||
|
||||||
|
git show origin/master:upper-constraints.txt) > $tmp_c
|
||||||
else
|
else
|
||||||
echo "Using $TEMPEST_VENV_UPPER_CONSTRAINTS constraints in Tempest virtual env."
|
echo "Using $TEMPEST_VENV_UPPER_CONSTRAINTS constraints in Tempest virtual env."
|
||||||
cat $TEMPEST_VENV_UPPER_CONSTRAINTS > $tmp_c
|
cat $TEMPEST_VENV_UPPER_CONSTRAINTS > $tmp_c
|
||||||
|
|||||||
Reference in New Issue
Block a user