]> Git Repo - qemu.git/commitdiff
iotests: extend sleeping time under Valgrind
authorAndrey Shinkevich <[email protected]>
Wed, 4 Sep 2019 09:11:24 +0000 (12:11 +0300)
committerKevin Wolf <[email protected]>
Fri, 13 Sep 2019 10:18:37 +0000 (12:18 +0200)
To synchronize the time when QEMU is running longer under the Valgrind,
increase the sleeping time in the test 247.

Signed-off-by: Andrey Shinkevich <[email protected]>
Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Reviewed-by: John Snow <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
tests/qemu-iotests/247

index 546a794d3d47cba217c557a2f5b94f66c7d8ac63..c853b73819be3218f3b35d764c09429a7d9cade8 100755 (executable)
@@ -57,7 +57,11 @@ TEST_IMG="$TEST_IMG.4" _make_test_img $size
 {"execute":"block-commit",
  "arguments":{"device":"format-4", "top-node": "format-2", "base-node":"format-0", "job-id":"job0"}}
 EOF
-sleep 1
+if [ "${VALGRIND_QEMU}" == "y" ]; then
+    sleep 10
+else
+    sleep 1
+fi
 echo '{"execute":"quit"}'
 ) | $QEMU -qmp stdio -nographic -nodefaults \
     -blockdev file,node-name=file-0,filename=$TEST_IMG.0,auto-read-only=on \
This page took 0.037898 seconds and 4 git commands to generate.