summaryrefslogtreecommitdiff
path: root/tests/test-admin-deploy-2.sh
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-07-15 16:13:12 -0400
committerColin Walters <walters@verbum.org>2013-07-15 16:13:12 -0400
commitfb93b9580703fd73d7a3a44bb103fd31565fed1f (patch)
treeb32412dab5fc4593691bec9b84a1109df95e19de /tests/test-admin-deploy-2.sh
parentd5f1ce4e17348a36069bd37bb67c3e97bc24ab3c (diff)
downloadostree-fb93b9580703fd73d7a3a44bb103fd31565fed1f.tar.gz
admin: Rename prune -> cleanup, avoid doing repo prune twice
Calling it "cleanup" is better since it does more than repo pruning. We were also doing a prune twice; ot_admin_cleanup() already does one, so drop the bits to do it in cleanup.c.
Diffstat (limited to 'tests/test-admin-deploy-2.sh')
-rwxr-xr-xtests/test-admin-deploy-2.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test-admin-deploy-2.sh b/tests/test-admin-deploy-2.sh
index ab0bb9a1..d7ddf5f5 100755
--- a/tests/test-admin-deploy-2.sh
+++ b/tests/test-admin-deploy-2.sh
@@ -56,3 +56,9 @@ assert_has_dir sysroot/boot/ostree/testos-${bootcsum}
assert_file_has_content sysroot/ostree/deploy/testos/deploy/${newrev}.0/etc/os-release 'NAME=TestOS'
echo "ok deploy and GC /boot"
+
+ostree admin --sysroot=sysroot cleanup
+assert_has_dir sysroot/boot/ostree/testos-${bootcsum}
+assert_file_has_content sysroot/ostree/deploy/testos/deploy/${newrev}.0/etc/os-release 'NAME=TestOS'
+
+echo "ok manual cleanup"