tests: Fix test-sideload.sh if ostree is built with curl backend

The soup backend and the curl backend give slightly different error
messages, so we need to tweak the 404 assert check to match both.

(cherry picked from commit 9914dff925)
This commit is contained in:
Alexander Larsson
2021-10-08 11:48:13 +02:00
parent 7059882069
commit 8a6a22e24a

View File

@@ -112,11 +112,9 @@ httpd_clear_log
if ${FLATPAK} ${U} install -y test-repo org.test.Hello &> install-error-log; then
assert_not_reached "Disabled online install broken"
fi
assert_file_has_content install-error-log "Server returned status 404: Not Found"
assert_file_has_content install-error-log "Server returned .*404.*"
assert_file_has_content httpd-log "GET .*commit .*404"
assert_file_has_content install-error-log "Server returned status 404: Not Found"
ln -s $SIDELOAD_REPO $SIDELOAD_REPO_LINK
${FLATPAK} ${U} install -y test-repo org.test.Hello