summaryrefslogtreecommitdiff
path: root/tests/admin-test.sh
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-05-20 19:05:35 +0200
committerGitHub <noreply@github.com>2020-05-20 19:05:35 +0200
commitbe62a01bffe49f1efdb38753f6fe0af1cb014a19 (patch)
treebef2a2e74d0f7ff48cae962474b8af6dfe069066 /tests/admin-test.sh
parent6586d240c2e91733a0480000025127e5b16cbd6b (diff)
parent70ebb91aa3106e769a1f7cb285730388e8291c4a (diff)
downloadostree-be62a01bffe49f1efdb38753f6fe0af1cb014a19.tar.gz
Merge pull request #2106 from jlebon/pr/fix-admin-test
tests/admin-test: Ensure that commits are 1s apart
Diffstat (limited to 'tests/admin-test.sh')
-rw-r--r--tests/admin-test.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/admin-test.sh b/tests/admin-test.sh
index 54b93321..18ca0d95 100644
--- a/tests/admin-test.sh
+++ b/tests/admin-test.sh
@@ -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^^^^)