summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@linaro.org>2015-01-19 16:03:33 +0200
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2015-01-19 14:09:43 +0000
commitb9a4e39150a31ca7e12322a344eb7b5222f42d55 (patch)
tree1fd709ab2529902463e696209847d1d9eca52221 /common
parente875f55bfd308d60252188226940d72562e01b36 (diff)
sleep before mount
Calling mount immediately after qemu-nbd seems racy, sometimes mount will fail. 2 sec should be enough. This has caused some spurious failures in kvm results. Change-Id: I6991825bd3f23546a571558578f90284ec57c38f Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'common')
-rwxr-xr-xcommon/scripts/kvm/test-kvm.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/scripts/kvm/test-kvm.sh b/common/scripts/kvm/test-kvm.sh
index ba3dd6f..cd322ed 100755
--- a/common/scripts/kvm/test-kvm.sh
+++ b/common/scripts/kvm/test-kvm.sh
@@ -85,6 +85,7 @@ if [ ! -r kvm.qcow2 ]; then
fi
qemu-nbd -c /dev/nbd0 kvm.qcow2
+sleep 2
mount /dev/nbd0p2 /mnt/
cp common/scripts/kvm/kvm-lava.conf /mnt/etc/init/kvm-lava.conf
@@ -158,6 +159,7 @@ case ${ARCH} in
esac
qemu-nbd -c /dev/nbd0 kvm.qcow2
+sleep 2
mount /dev/nbd0p2 /mnt/
if ! grep -q "kvm-boot-1:" /mnt/root/guest.log