Sleep up to 3 minutes to avoid disk contention 99/27799/1
authorGary Wu <gary.i.wu@huawei.com>
Wed, 10 Jan 2018 06:37:27 +0000 (22:37 -0800)
committerGary Wu <gary.i.wu@huawei.com>
Wed, 10 Jan 2018 06:37:27 +0000 (22:37 -0800)
Change-Id: Ia3867a06ff88066484d2a1c1e60c16dc7521ec8c
Issue-ID: INT-278
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
test/ete/labs/gwu/apt-proxy.sh

index c771c71..858c48b 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 sed -i '/#!\/bin\/bash/a\
+            # sleep up to 3 minutes to avoid disk contention\
+            sleep $((RANDOM / 200))\
             mkdir -p /etc/docker\
             cat > /etc/docker/daemon.json <<EOF\
             {\