diff options
author | Colin Walters <walters@verbum.org> | 2014-05-12 16:57:46 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2014-05-12 17:31:34 -0400 |
commit | 24e1bf2552ca46177512877cd77f5fb28ba623b4 (patch) | |
tree | 886d760dd24e1bbbd711c1813fe884ad9b2beea5 /tests/test-admin-deploy-switch.sh | |
parent | 7ccfc93f71baea3a843deff14cd05470abe7ece9 (diff) | |
download | ostree-24e1bf2552ca46177512877cd77f5fb28ba623b4.tar.gz |
admin switch: Support switching remotes as well
Say I have an installation from CDROM; the remote name may be
"installmedia" or something like that. We want to allow also
switching remotes.
Diffstat (limited to 'tests/test-admin-deploy-switch.sh')
-rw-r--r-- | tests/test-admin-deploy-switch.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/test-admin-deploy-switch.sh b/tests/test-admin-deploy-switch.sh index 815ca69c..f791348f 100644 --- a/tests/test-admin-deploy-switch.sh +++ b/tests/test-admin-deploy-switch.sh @@ -27,7 +27,7 @@ setup_os_repository "archive-z2" "syslinux" echo "ok setup" -echo "1..2" +echo "1..3" ostree --repo=sysroot/ostree/repo remote add --set=gpg-verify=false testos file://$(pwd)/testos-repo ostree --repo=sysroot/ostree/repo pull testos testos/buildmaster/x86_64-runtime @@ -42,3 +42,11 @@ ostree admin --sysroot=sysroot switch --os=testos testos/buildmaster/x86_64-deve assert_file_has_content sysroot/ostree/deploy/testos/current/usr/include/foo.h 'header' echo "ok switch" + +ostree --repo=sysroot/ostree/repo remote add --set=gpg-verify=false anothertestos file://$(pwd)/testos-repo +ostree admin --sysroot=sysroot switch --os=testos anothertestos:testos/buildmaster/x86_64-devel +# Ok this is lame, need a better shell command to extract config, or switch to gjs +ostree admin --sysroot=sysroot status > status.txt +assert_file_has_content status.txt anothertestos + +echo "ok switch remotes" |