Blame 0002-TEST-15-BTRFSRAID-write-diskimage-to-tmp-dir.patch

Harald Hoyer b9a7ee
From 12018c91eac3e0165fe3d5df5bc1382fdf64d2a1 Mon Sep 17 00:00:00 2001
Harald Hoyer b9a7ee
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer b9a7ee
Date: Wed, 8 Feb 2012 17:02:57 +0100
Harald Hoyer b9a7ee
Subject: [PATCH] TEST-15-BTRFSRAID: write diskimage to tmp dir
Harald Hoyer b9a7ee
Harald Hoyer b9a7ee
---
Harald Hoyer b9a7ee
 test/TEST-15-BTRFSRAID/test.sh |    3 ++-
Harald Hoyer b9a7ee
 1 files changed, 2 insertions(+), 1 deletions(-)
Harald Hoyer b9a7ee
Harald Hoyer b9a7ee
diff --git a/test/TEST-15-BTRFSRAID/test.sh b/test/TEST-15-BTRFSRAID/test.sh
Harald Hoyer b9a7ee
index bacdb4a..8f7839d 100755
Harald Hoyer b9a7ee
--- a/test/TEST-15-BTRFSRAID/test.sh
Harald Hoyer b9a7ee
+++ b/test/TEST-15-BTRFSRAID/test.sh
Harald Hoyer b9a7ee
@@ -5,8 +5,8 @@ KVERSION=${KVERSION-$(uname -r)}
Harald Hoyer b9a7ee
 
Harald Hoyer b9a7ee
 # Uncomment this to debug failures
Harald Hoyer b9a7ee
 #DEBUGFAIL="rd.shell"
Harald Hoyer b9a7ee
-DISKIMAGE=$TESTDIR/TEST-15-BTRFSRAID-root.img
Harald Hoyer b9a7ee
 test_run() {
Harald Hoyer b9a7ee
+    DISKIMAGE=$TESTDIR/TEST-15-BTRFSRAID-root.img
Harald Hoyer b9a7ee
     $testdir/run-qemu \
Harald Hoyer b9a7ee
 	-hda $DISKIMAGE \
Harald Hoyer b9a7ee
 	-m 256M -nographic \
Harald Hoyer b9a7ee
@@ -18,6 +18,7 @@ test_run() {
Harald Hoyer b9a7ee
 
Harald Hoyer b9a7ee
 test_setup() {
Harald Hoyer b9a7ee
     # Create the blank file to use as a root filesystem
Harald Hoyer b9a7ee
+    DISKIMAGE=$TESTDIR/TEST-15-BTRFSRAID-root.img
Harald Hoyer b9a7ee
     rm -f $DISKIMAGE
Harald Hoyer b9a7ee
     dd if=/dev/null of=$DISKIMAGE bs=1M seek=1024
Harald Hoyer b9a7ee