diff --git a/tests/utils/shippable/units.sh b/tests/utils/shippable/units.sh index e10712b297..a3d05692bd 100755 --- a/tests/utils/shippable/units.sh +++ b/tests/utils/shippable/units.sh @@ -23,7 +23,7 @@ esac ansible-test env --timeout "${timeout}" --color -v if [ "$2" == "2.10" ]; then - echo "python-gitlab < 2.10.1 ; python_version >= '3.6'" >> tests/unit/requirements.txt + sed -i -E 's/^python-gitlab($| .*)/python-gitlab < 2.10.1 ; python_version >= '3.6'/g' tests/unit/requirements.txt fi # shellcheck disable=SC2086