Merge pull request #2040 from cgwalters/itest-require-writable
tests/kola: Two test fixes
This commit is contained in:
commit
d87301b111
|
|
@ -5,6 +5,7 @@
|
||||||
set -xeuo pipefail
|
set -xeuo pipefail
|
||||||
|
|
||||||
. ${KOLA_EXT_DATA}/libinsttest.sh
|
. ${KOLA_EXT_DATA}/libinsttest.sh
|
||||||
|
require_writable_sysroot
|
||||||
|
|
||||||
date
|
date
|
||||||
cd /ostree/repo/tmp
|
cd /ostree/repo/tmp
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,8 @@ case "${n}" in
|
||||||
firstdeploycommit=$(rpm-ostree status |grep 'Commit:' |head -1|sed -e 's,^ *Commit: *,,')
|
firstdeploycommit=$(rpm-ostree status |grep 'Commit:' |head -1|sed -e 's,^ *Commit: *,,')
|
||||||
assert_streq "${firstdeploycommit}" "${newcommit}"
|
assert_streq "${firstdeploycommit}" "${newcommit}"
|
||||||
# Cleanup
|
# Cleanup
|
||||||
|
## TODO remove workaround for https://github.com/coreos/rpm-ostree/pull/2021
|
||||||
|
mkdir -p /var/lib/rpm-ostree/history
|
||||||
rpm-ostree cleanup -rp
|
rpm-ostree cleanup -rp
|
||||||
echo "ok upgrade with staging"
|
echo "ok upgrade with staging"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue