[ostree] tests: Add a commitpartial + prune test
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] tests: Add a commitpartial + prune test
- Date: Wed, 23 Mar 2016 19:35:54 +0000 (UTC)
commit 7232b2940b763258a01c3ee086e2fe90fa56b9eb
Author: Colin Walters <walters verbum org>
Date: Wed Mar 23 15:32:06 2016 -0400
tests: Add a commitpartial + prune test
Followup for previous commit.
tests/test-prune.sh | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/tests/test-prune.sh b/tests/test-prune.sh
index a1322d9..7184ea9 100755
--- a/tests/test-prune.sh
+++ b/tests/test-prune.sh
@@ -23,7 +23,7 @@ set -euo pipefail
setup_fake_remote_repo1 "archive-z2"
-echo '1..1'
+echo '1..2'
cd ${test_tmpdir}
mkdir repo
@@ -126,3 +126,11 @@ ${CMD_PREFIX} ostree --repo=repo static-delta list | wc -l > deltascount
assert_file_has_content deltascount "^1$"
echo "ok prune"
+
+rm repo -rf
+ostree --repo=repo init --mode=bare-user
+${CMD_PREFIX} ostree --repo=repo remote add --set=gpg-verify=false origin $(cat
httpd-address)/ostree/gnomerepo
+${CMD_PREFIX} ostree --repo=repo pull --depth=-1 --commit-metadata-only origin test
+ostree --repo=repo prune
+
+echo "ok prune with partial repo"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]