tests/admin-test: Ensure that commits are 1s apart
authorJonathan Lebon <jonathan@jlebon.com>
Wed, 20 May 2020 14:45:45 +0000 (10:45 -0400)
committerJonathan Lebon <jonathan@jlebon.com>
Wed, 20 May 2020 14:48:44 +0000 (10:48 -0400)
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

tests/admin-test.sh

index c716d0a52a575331cbd47ff0344d260029892ea3..55da40c46b28c9a9a85c506f771db617932dcef7 100644 (file)
@@ -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^^^^)