From a4dabaa6db8806f23bb7d7bdbb95cab456ef3a73 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 23 Jan 2019 23:00:16 +0300 Subject: Fix publish test that fails due to package version decrease on commit --- tests/publish.testscript | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/publish.testscript') diff --git a/tests/publish.testscript b/tests/publish.testscript index df3a817..55bc01a 100644 --- a/tests/publish.testscript +++ b/tests/publish.testscript @@ -257,6 +257,13 @@ g = git -C prj >! 2>! info: use --force=uncommitted to publish anyway EOE + # Note that the uncomitted snapshot sn is the previous commit time + 1 + # and the commited snapshot sn is the commit time. That's why let's + # sleep a bit to make sure that the package version increases with the + # commit. + # + sleep 1; + $g commit -a -m 'Version'; $* 2>>~%EOE% != 0; -- cgit v1.1