From c98fa0e1f963d3a84d60dab0fb4ea39a23142432 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Mon, 8 Jan 2018 15:16:32 -0800 Subject: [PATCH] Add test for #5387 --- letsencrypt-auto-source/tests/centos6_tests.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/letsencrypt-auto-source/tests/centos6_tests.sh b/letsencrypt-auto-source/tests/centos6_tests.sh index e3ebbaec5..69dbf0fbd 100644 --- a/letsencrypt-auto-source/tests/centos6_tests.sh +++ b/letsencrypt-auto-source/tests/centos6_tests.sh @@ -47,6 +47,12 @@ if [ $RESULT -eq 0 ]; then exit 1 fi +# Skip self upgrade due to LE_PYTHON value +if ! LE_PYTHON=nonexistant certbot/letsencrypt-auto-source/letsencrypt-auto 2>&1 | grep -q "WARNING: couldn't find Python"; then + echo "Python upgrade failure warning not printed!" + exit 1 +fi + # bootstrap, this time installing python3 certbot/letsencrypt-auto-source/letsencrypt-auto --no-self-upgrade -n > /dev/null 2> /dev/null