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/integration/test-apt-update-nofallback | |
| 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/integration/test-apt-update-nofallback')
| -rwxr-xr-x | test/integration/test-apt-update-nofallback | 4 |
1 files changed, 2 insertions, 2 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 |
