diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2025-01-01 22:20:25 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2025-01-01 22:27:31 +0100 |
| commit | 12a3dfe6b86ca01ac2d643086b8f30e5b9189290 (patch) | |
| tree | cf4a8a5c60f90d338a01e3b61c8d229af5cd9fae /test | |
| parent | 32ff6f5f9de768536197ec803a7d0676512105e5 (diff) | |
test: Check "${METHODSDIR}/sqv" not "/usr/bin/sqv"
This is the correct check to find out whether we have built
with sqv support.
Diffstat (limited to 'test')
| -rwxr-xr-x | test/integration/test-apt-update-nofallback | 4 | ||||
| -rwxr-xr-x | test/integration/test-apt-update-repeated-ims-hit | 2 | ||||
| -rwxr-xr-x | test/integration/test-apt-update-rollback | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/test/integration/test-apt-update-nofallback b/test/integration/test-apt-update-nofallback index c9ee75756..95e445139 100755 --- a/test/integration/test-apt-update-nofallback +++ b/test/integration/test-apt-update-nofallback @@ -198,7 +198,7 @@ test_inrelease_to_invalid_inrelease() sed -i 's/^Codename:.*/Codename: evil!/' "$APTARCHIVE/dists/unstable/InRelease" inject_evil_package - if test -e /usr/bin/sqv; then + if test -e "${METHODSDIR}/sqv"; then # FIXME: Do not assert sqv output testwarningequal "W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: file:${APTARCHIVE} unstable InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is: Verifying signature: Message has been manipulated W: Failed to fetch file:${APTARCHIVE}/dists/unstable/InRelease Sub-process /usr/bin/sqv returned an error code (1), error message is: Verifying signature: Message has been manipulated @@ -225,7 +225,7 @@ test_release_gpg_to_invalid_release_release_gpg() # now subvert Release do no longer verify echo "Some evil data" >> "$APTARCHIVE/dists/unstable/Release" inject_evil_package - if test -e /usr/bin/sqv; then + if test -e "${METHODSDIR}/sqv"; then # FIXME: Do not assert sqv output testwarningequal "W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: file:${APTARCHIVE} unstable Release: Sub-process /usr/bin/sqv returned an error code (1), error message is: Verifying signature: Message has been manipulated W: Failed to fetch file:${APTARCHIVE}/dists/unstable/Release.gpg Sub-process /usr/bin/sqv returned an error code (1), error message is: Verifying signature: Message has been manipulated diff --git a/test/integration/test-apt-update-repeated-ims-hit b/test/integration/test-apt-update-repeated-ims-hit index 43871a31f..57526c41b 100755 --- a/test/integration/test-apt-update-repeated-ims-hit +++ b/test/integration/test-apt-update-repeated-ims-hit @@ -40,7 +40,7 @@ rm -f rootdir/etc/apt/trusted.gpg.d/* sed -i -e 's#^deb #deb [trusted=yes] #' rootdir/etc/apt/sources.list.d/* APTARCHIVE="$(readlink -f ./aptarchive)" -if test -e /usr/bin/sqv; then +if test -e "${METHODSDIR}/sqv"; then GPGERROR="W: GPG error: file:$APTARCHIVE Release: The signatures couldn't be verified because no keyring is specified" else GPGERROR="W: GPG error: file:$APTARCHIVE Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5A90D141DBAC8DAE" diff --git a/test/integration/test-apt-update-rollback b/test/integration/test-apt-update-rollback index 68505f6ba..7a8f57abb 100755 --- a/test/integration/test-apt-update-rollback +++ b/test/integration/test-apt-update-rollback @@ -156,7 +156,7 @@ test_inrelease_to_unauth_inrelease() { signreleasefiles 'Marvin Paranoid' - if test -e /usr/bin/sqv; then + if test -e "${METHODSDIR}/sqv"; then # FIXME: Do not assert sqv output testwarningequal "W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: file:${APTARCHIVE} unstable InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is: Missing key DE66AECA9151AFA1877EC31DE8525D47528144E2, which is needed to verify signature. W: Failed to fetch file:$APTARCHIVE/dists/unstable/InRelease Sub-process /usr/bin/sqv returned an error code (1), error message is: Missing key DE66AECA9151AFA1877EC31DE8525D47528144E2, which is needed to verify signature. |
