tests: Remove a pointless test

Typo correction has nothing to do with --no-pull or --no-deploy so it
doesn't make sense to test them together when we already test each
separately.

[smcv: Resolve conflict with #4858]
This commit is contained in:
Phaedrus Leeds
2022-04-14 12:34:48 -07:00
committed by Simon McVittie
parent b95525eae2
commit 45d86effce

View File

@@ -24,7 +24,7 @@ set -euo pipefail
skip_without_bwrap
skip_revokefs_without_fuse
echo "1..45"
echo "1..44"
#Regular repo
setup_repo
@@ -629,30 +629,6 @@ assert_file_has_content list-log "org\.test\.Platform/"
ok "install with --no-deploy and then --no-pull"
${FLATPAK} ${U} uninstall -y org.test.Hello org.test.Platform
${FLATPAK} ${U} install -y --no-deploy --app test-repo hello
${FLATPAK} ${U} list --columns=ref > list-log
assert_not_file_has_content list-log "org\.test\.Hello/"
assert_not_file_has_content list-log "org\.test\.Platform/"
# Disable the remote to make sure we don't do i/o
port=$(cat httpd-port)
${FLATPAK} ${U} remote-modify --url="http://127.0.0.1:${port}/disable-test" test-repo
# Note: The partial ref is only auto-corrected without user interaction because we're using -y
${FLATPAK} ${U} install -y --no-pull --app test-repo hello
# re-enable remote
${FLATPAK} ${U} remote-modify --url="http://127.0.0.1:${port}/test" test-repo
${FLATPAK} ${U} list --columns=ref > list-log
assert_file_has_content list-log "org\.test\.Hello/"
assert_file_has_content list-log "org\.test\.Platform/"
ok "install with --no-deploy and then --no-pull works with typo correction"
${FLATPAK} uninstall -y --all
${FLATPAK} ${U} list --columns=ref > list-log