Blame 0025-TEST-10-RAID-fixed-TESTDIR-handling.patch

Harald Hoyer 3957aa
From cf5229190dfb711f6380afe50917559477711d83 Mon Sep 17 00:00:00 2001
Harald Hoyer 3957aa
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 3957aa
Date: Fri, 13 Jan 2012 11:20:05 +0100
Harald Hoyer 3957aa
Subject: [PATCH] TEST-10-RAID: fixed TESTDIR handling
Harald Hoyer 3957aa
Harald Hoyer 3957aa
---
Harald Hoyer 3957aa
 test/TEST-10-RAID/test.sh |    3 ++-
Harald Hoyer 3957aa
 1 files changed, 2 insertions(+), 1 deletions(-)
Harald Hoyer 3957aa
Harald Hoyer 3957aa
diff --git a/test/TEST-10-RAID/test.sh b/test/TEST-10-RAID/test.sh
Harald Hoyer 3957aa
index 90758d8..5ac0bc5 100755
Harald Hoyer 3957aa
--- a/test/TEST-10-RAID/test.sh
Harald Hoyer 3957aa
+++ b/test/TEST-10-RAID/test.sh
Harald Hoyer 3957aa
@@ -5,8 +5,8 @@ KVERSION=${KVERSION-$(uname -r)}
Harald Hoyer 3957aa
 
Harald Hoyer 3957aa
 # Uncomment this to debug failures
Harald Hoyer 3957aa
 #DEBUGFAIL="rd.shell"
Harald Hoyer 3957aa
-DISKIMAGE=$TESTDIR/TEST-10-RAID-root.img
Harald Hoyer 3957aa
 test_run() {
Harald Hoyer 3957aa
+    DISKIMAGE=$TESTDIR/TEST-10-RAID-root.img
Harald Hoyer 3957aa
     $testdir/run-qemu \
Harald Hoyer 3957aa
 	-hda $DISKIMAGE \
Harald Hoyer 3957aa
 	-m 256M -nographic \
Harald Hoyer 3957aa
@@ -17,6 +17,7 @@ test_run() {
Harald Hoyer 3957aa
 }
Harald Hoyer 3957aa
 
Harald Hoyer 3957aa
 test_setup() {
Harald Hoyer 3957aa
+    DISKIMAGE=$TESTDIR/TEST-10-RAID-root.img
Harald Hoyer 3957aa
     # Create the blank file to use as a root filesystem
Harald Hoyer 3957aa
     rm -f $DISKIMAGE
Harald Hoyer 3957aa
     dd if=/dev/null of=$DISKIMAGE bs=1M seek=40