From 45d86effce96b6862eaa68aab4af582ff4ce2c3c Mon Sep 17 00:00:00 2001 From: Phaedrus Leeds Date: Thu, 14 Apr 2022 12:34:48 -0700 Subject: [PATCH] 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] --- tests/test-repo.sh | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/tests/test-repo.sh b/tests/test-repo.sh index ef5ef8d7..ca40a8c0 100644 --- a/tests/test-repo.sh +++ b/tests/test-repo.sh @@ -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