mirror of
https://github.com/flatpak/flatpak.git
synced 2026-07-01 11:47:15 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user