From 9503d608ee40b3380a4efbe3db2b5d343099c2fb Mon Sep 17 00:00:00 2001 From: James Antill Date: Tue, 28 Oct 2014 00:47:25 -0400 Subject: [PATCH] Check rpm-ostree status output --- tests/test-basic.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test-basic.sh b/tests/test-basic.sh index dfd2eb7a..e5445cf2 100755 --- a/tests/test-basic.sh +++ b/tests/test-basic.sh @@ -32,8 +32,18 @@ ostree --repo=sysroot/ostree/repo remote add --set=gpg-verify=false testos file: ostree --repo=sysroot/ostree/repo pull testos:testos/buildmaster/x86_64-runtime ostree admin --sysroot=sysroot deploy --karg=root=LABEL=MOO --karg=quiet --os=testos testos:testos/buildmaster/x86_64-runtime +rpm-ostree status --sysroot=sysroot | tee OUTPUT-status.txt + +assert_file_has_content OUTPUT-status.txt '1.0.10' + os_repository_new_commit rpm-ostree upgrade --sysroot=sysroot --os=testos ostree --repo=sysroot/ostree/repo remote add --set=gpg-verify=false otheros file://$(pwd)/testos-repo testos/buildmaster/x86_64-runtime rpm-ostree rebase --sysroot=sysroot --os=testos otheros: + +rpm-ostree status --sysroot=sysroot | tee OUTPUT-status.txt + +assert_not_file_has_content OUTPUT-status.txt '1.0.10' +version=$(date "+%Y%m%d.0") +assert_file_has_content OUTPUT-status.txt $version