mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-09 01:18:35 +03:00
tests/admin-test: Ensure that commits are 1s apart
Otherwise the new check we added there to verify that upgrading without `--allow-downgrade` fails itself fails. See: https://github.com/ostreedev/ostree/pull/2099#issuecomment-629805840
This commit is contained in:
parent
5a82d75adb
commit
70ebb91aa3
@ -300,6 +300,8 @@ echo "ok no duplicate version strings in title"
|
||||
|
||||
# Test upgrade with and without --override-commit
|
||||
# See https://github.com/GNOME/ostree/pull/147
|
||||
sleep 1
|
||||
os_repository_new_commit
|
||||
${CMD_PREFIX} ostree pull --repo=sysroot/ostree/repo --commit-metadata-only --depth=-1 testos:testos/buildmaster/x86_64-runtime
|
||||
head_rev=$(${CMD_PREFIX} ostree rev-parse --repo=sysroot/ostree/repo testos/buildmaster/x86_64-runtime)
|
||||
prev_rev=$(${CMD_PREFIX} ostree rev-parse --repo=sysroot/ostree/repo testos/buildmaster/x86_64-runtime^^^^)
|
||||
|
Loading…
Reference in New Issue
Block a user