Test 'ostree admin --print-current-dir'
Add a test for the --print-current-dir option https://bugzilla.gnome.org/show_bug.cgi?id=731051
This commit is contained in:
parent
c3f8019c19
commit
cc180f5d38
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "1..9"
|
echo "1..10"
|
||||||
|
|
||||||
ostree --repo=sysroot/ostree/repo pull-local --remote=testos testos-repo testos/buildmaster/x86_64-runtime
|
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)
|
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"
|
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_not_has_dir sysroot/boot/loader.0
|
||||||
assert_has_dir sysroot/boot/loader.1
|
assert_has_dir sysroot/boot/loader.1
|
||||||
assert_has_dir sysroot/ostree/boot.1.1
|
assert_has_dir sysroot/ostree/boot.1.1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue