]> Git Repo - qemu.git/blobdiff - tests/qemu-iotests/094
iotests: Backup with different source/target size
[qemu.git] / tests / qemu-iotests / 094
index 9aa01e3627c0dce8e0029253498f8ec0299919c4..2d3e1004d344d630a2ea63c61f62cc28bf7649bc 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # Test case for drive-mirror to NBD
 #
 seq="$(basename $0)"
 echo "QA output created by $seq"
 
-here="$PWD"
 status=1       # failure is the default!
 
 _cleanup()
 {
     _cleanup_qemu
     _cleanup_test_img
-    rm -f "$TEST_DIR/source.$IMGFMT"
+    _rm_test_img "$TEST_DIR/source.$IMGFMT"
 }
 
 trap "_cleanup; exit \$status" 0 1 2 3 15
@@ -43,11 +42,10 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 
 _supported_fmt generic
 _supported_proto nbd
-_supported_os Linux
 _unsupported_imgopts "subformat=monolithicFlat" "subformat=twoGbMaxExtentFlat"
 
 _make_test_img 64M
-$QEMU_IMG create -f $IMGFMT "$TEST_DIR/source.$IMGFMT" 64M | _filter_img_create
+TEST_IMG_FILE="$TEST_DIR/source.$IMGFMT" IMGPROTO=file _make_test_img 64M
 
 _launch_qemu -drive if=none,id=src,file="$TEST_DIR/source.$IMGFMT",format=raw \
              -nodefaults
This page took 0.026334 seconds and 4 git commands to generate.