From 12a3dfe6b86ca01ac2d643086b8f30e5b9189290 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 1 Jan 2025 22:20:25 +0100 Subject: test: Check "${METHODSDIR}/sqv" not "/usr/bin/sqv" This is the correct check to find out whether we have built with sqv support. --- test/integration/test-apt-update-nofallback | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/integration/test-apt-update-nofallback') 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 -- cgit v1.2.3-70-g09d2