aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2021-02-22 02:43:48 +0100
committerGuilhem Moulin <guilhem@fripost.org>2021-02-22 03:19:11 +0100
commit9a6a7824a009e1fb1f97afd227181191bc10f0a6 (patch)
treee2906add8802b781bcca519b7206a72eecd036f9 /tests
parentf55a2782db2e86c88ed4780d7ed54b09792d07d6 (diff)
Fix `./test --deb`.
The staging environment wasn't set properly for the Debian packages.
Diffstat (limited to 'tests')
-rw-r--r--tests/old-accountd3
-rw-r--r--tests/old-lacme4
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/old-accountd b/tests/old-accountd
index e7ccc0a..b44f7ec 100644
--- a/tests/old-accountd
+++ b/tests/old-accountd
@@ -14,7 +14,8 @@ EOF
echo "deb http://deb.debian.org/debian stretch main" >>/etc/apt/sources.list
DEBIAN_FRONTEND="noninteractive" apt update
-DEBIAN_FRONTEND="noninteractive" apt install -y --no-install-recommends --reinstall \
+DEBIAN_FRONTEND="noninteractive" apt install -y --no-install-recommends \
+ --reinstall --allow-downgrades \
-oDPkg::Options::="--force-confdef" -oDPkg::Options::="--force-overwrite" \
lacme-accountd/stretch
diff --git a/tests/old-lacme b/tests/old-lacme
index 16a647d..fa7d827 100644
--- a/tests/old-lacme
+++ b/tests/old-lacme
@@ -16,12 +16,12 @@ EOF
echo "deb http://deb.debian.org/debian buster main" >>/etc/apt/sources.list
DEBIAN_FRONTEND="noninteractive" apt update
-DEBIAN_FRONTEND="noninteractive" apt install -y --no-install-recommends --reinstall \
+DEBIAN_FRONTEND="noninteractive" apt install -y --no-install-recommends \
+ --reinstall --allow-downgrades \
-oDPkg::Options::="--force-confdef" -oDPkg::Options::="--force-overwrite" \
lacme/buster
# restore staging environment
-sed -ri '0,\|^#?server\s*=.*| {s||server = https://acme-staging-v02.api.letsencrypt.org/directory|}' /etc/lacme/lacme.conf
mv -f /usr/share/lacme/ca-certificates.crt.back /usr/share/lacme/ca-certificates.crt
SOCKET=~lacme-account/S.lacme