From e29cdbe0fe7790245c4b363fa2e255749d0e7cd9 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sun, 29 Aug 2021 00:15:11 +0200 Subject: [PATCH] Change requirement instead of appending new one. --- tests/utils/shippable/units.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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