Sleep up to 3 minutes to avoid disk contention
Change-Id: Ia3867a06ff88066484d2a1c1e60c16dc7521ec8c
Issue-ID: INT-278
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
(cherry picked from commit 8d35f1c1aedb430fcd03293e4f37f5c0a683419d)
diff --git a/test/ete/labs/gwu/apt-proxy.sh b/test/ete/labs/gwu/apt-proxy.sh
index c771c71..858c48b 100755
--- a/test/ete/labs/gwu/apt-proxy.sh
+++ b/test/ete/labs/gwu/apt-proxy.sh
@@ -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\
{\