From f8517d6f02bdd312995769e0f5aafcfc010ef122 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 30 Aug 2015 16:11:24 +0200 Subject: reproducible: refactor --- bin/reproducible_build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 9fb5e434..10a4bc5e 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -17,7 +17,9 @@ set -e ARCH="amd64" # sleep 1-12 secs to randomize start times -/bin/sleep $(echo "scale=1 ; $(shuf -i 1-120 -n 1)/10" | bc ) +delay_start() { + /bin/sleep $(echo "scale=1 ; $(shuf -i 1-120 -n 1)/10" | bc ) +} create_results_dirs() { mkdir -vp $BASE/dbd/${SUITE}/${ARCH} @@ -363,6 +365,7 @@ choose_package () { } init() { + delay_start if [ $SAVE_ARTIFACTS -eq 1 ] ; then local ANNOUNCE="Artifacts will be preserved." fi -- cgit v1.2.3-70-g09d2