From 6d1f1cb3625f311d66eb4173c5a61ac00761f809 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Tue, 10 Dec 2019 20:50:08 +0100 Subject: [PATCH] Test also install only --- letsencrypt-auto-source/tests/centos6_tests.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/letsencrypt-auto-source/tests/centos6_tests.sh b/letsencrypt-auto-source/tests/centos6_tests.sh index 3daecc6fa..62ecbcb1c 100644 --- a/letsencrypt-auto-source/tests/centos6_tests.sh +++ b/letsencrypt-auto-source/tests/centos6_tests.sh @@ -92,14 +92,19 @@ unset VENV_PATH # we're going to modify env variables, so do this in a subshell ( -# ensure CentOS6 32bits is not supported anymore, and so certbot is not upgraded +# ensure CentOS6 32bits is not supported anymore, and so certbot +# is not upgraded nor reinstalled. export UNAME_FAKE_32BITS=true if ! "$LE_AUTO" 2>&1 | grep -q "Certbot will no longer receive updates."; then echo "On CentOS 32 bits, certbot-auto upgraded certbot." exit 1 fi +if ! "$LE_AUTO" --install-only 2>&1 | grep -q "Certbot cannot be installed."; then + echo "On CentOS 32 bits, certbot-auto installed again certbot." + exit 1 +fi -echo "PASSED: On CentOS6 32 bits, certbot-auto refuses to upgrade certbot." +echo "PASSED: On CentOS6 32 bits, certbot-auto refuses to install/upgrade certbot." ) # test using python3