Merge pull request #2040 from cgwalters/itest-require-writable

tests/kola: Two test fixes
This commit is contained in:
OpenShift Merge Robot 2020-03-23 20:01:04 +01:00 committed by GitHub
commit d87301b111
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@
set -xeuo pipefail
. ${KOLA_EXT_DATA}/libinsttest.sh
require_writable_sysroot
date
cd /ostree/repo/tmp

View File

@ -71,6 +71,8 @@ case "${n}" in
firstdeploycommit=$(rpm-ostree status |grep 'Commit:' |head -1|sed -e 's,^ *Commit: *,,')
assert_streq "${firstdeploycommit}" "${newcommit}"
# Cleanup
## TODO remove workaround for https://github.com/coreos/rpm-ostree/pull/2021
mkdir -p /var/lib/rpm-ostree/history
rpm-ostree cleanup -rp
echo "ok upgrade with staging"