summaryrefslogtreecommitdiff
path: root/tests/admin-test.sh
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2014-09-26 11:54:04 -0400
committerOwen W. Taylor <otaylor@fishsoup.net>2014-09-26 11:55:11 -0400
commitcc180f5d38e3833a1e10b1185b40c1c539e83239 (patch)
treeb086d2f8cb8fba2dbbd13f621585c43b1b9ab7bd /tests/admin-test.sh
parentc3f8019c191deb364a38eab8e0c4ce4406183946 (diff)
downloadostree-cc180f5d38e3833a1e10b1185b40c1c539e83239.tar.gz
Test 'ostree admin --print-current-dir'
Add a test for the --print-current-dir option https://bugzilla.gnome.org/show_bug.cgi?id=731051
Diffstat (limited to 'tests/admin-test.sh')
-rwxr-xr-xtests/admin-test.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/admin-test.sh b/tests/admin-test.sh
index c77e4167..85be1f7e 100755
--- a/tests/admin-test.sh
+++ b/tests/admin-test.sh
@@ -19,7 +19,7 @@
set -e
-echo "1..9"
+echo "1..10"
ostree --repo=sysroot/ostree/repo pull-local --remote=testos testos-repo testos/buildmaster/x86_64-runtime
rev=$(ostree --repo=sysroot/ostree/repo rev-parse testos/buildmaster/x86_64-runtime)
@@ -30,6 +30,11 @@ ostree admin --sysroot=sysroot status
echo "ok deploy command"
+ostree admin --sysroot=sysroot --print-current-dir > curdir
+assert_file_has_content curdir ^`pwd`/sysroot/ostree/deploy/testos/deploy/${rev}.0$
+
+echo "ok --print-current-dir"
+
assert_not_has_dir sysroot/boot/loader.0
assert_has_dir sysroot/boot/loader.1
assert_has_dir sysroot/ostree/boot.1.1