summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/reproducible_build.sh5
1 files changed, 4 insertions, 1 deletions
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