]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
TEST-15-BTRFSRAID: write diskimage to tmp dir
authorHarald Hoyer <harald@redhat.com>
Wed, 8 Feb 2012 16:02:57 +0000 (17:02 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 8 Feb 2012 16:02:57 +0000 (17:02 +0100)
test/TEST-15-BTRFSRAID/test.sh

index bacdb4a18678ac13474f1868c4b03e4643f43fa5..8f7839da339ae853c4c80d00e621dcd61e729a49 100755 (executable)
@@ -5,8 +5,8 @@ KVERSION=${KVERSION-$(uname -r)}
 
 # Uncomment this to debug failures
 #DEBUGFAIL="rd.shell"
-DISKIMAGE=$TESTDIR/TEST-15-BTRFSRAID-root.img
 test_run() {
+    DISKIMAGE=$TESTDIR/TEST-15-BTRFSRAID-root.img
     $testdir/run-qemu \
        -hda $DISKIMAGE \
        -m 256M -nographic \
@@ -18,6 +18,7 @@ test_run() {
 
 test_setup() {
     # Create the blank file to use as a root filesystem
+    DISKIMAGE=$TESTDIR/TEST-15-BTRFSRAID-root.img
     rm -f $DISKIMAGE
     dd if=/dev/null of=$DISKIMAGE bs=1M seek=1024