diff options
author | Matthew Leeds <matthew.leeds@endlessm.com> | 2019-08-23 17:38:56 -0700 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2019-09-09 10:20:34 +0000 |
commit | e2752abf28266fd0c6f27ba6be084fe0285c9285 (patch) | |
tree | 6fed2e4fd258f7fc9d91743cd98f545585970aaf | |
parent | b3d77bec694e11001c1495678b3f18fef5a2eef7 (diff) | |
download | flatpak-e2752abf28266fd0c6f27ba6be084fe0285c9285.tar.gz |
tests: Add a test for uninstall --unused
Closes: #3067
Approved by: alexlarsson
-rw-r--r-- | tests/test-repo.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/test-repo.sh b/tests/test-repo.sh index cd85ddfd..8c3b19f5 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..33" +echo "1..34" #Regular repo setup_repo @@ -467,6 +467,16 @@ setup_repo echo "ok uninstall with missing remote" +${FLATPAK} ${U} list -a --columns=application > list-log +assert_file_has_content list-log "org\.test\.Platform" + +${FLATPAK} ${U} uninstall -y --unused + +${FLATPAK} ${U} list -a --columns=application > list-log +assert_not_file_has_content list-log "org\.test\.Platform" + +echo "ok uninstall --unused" + # Test that remote-ls works in all of the following cases: # * system remote, and --system is used # * system remote, and --system is omitted |