xfs
[Top] [All Lists]

[PATCH 5/5] xfstests: unmount TEST_DEV and SCRATCH_DEV after test run

To: xfs@xxxxxxxxxxx
Subject: [PATCH 5/5] xfstests: unmount TEST_DEV and SCRATCH_DEV after test run
From: Lukas Czerner <lczerner@xxxxxxxxxx>
Date: Wed, 26 Mar 2014 00:38:11 +0100
Cc: Lukas Czerner <lczerner@xxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1395790691-21161-1-git-send-email-lczerner@xxxxxxxxxx>
References: <1395790691-21161-1-git-send-email-lczerner@xxxxxxxxxx>
Unmount TEST_DEV and SCRATCH_DEV after each test run to avoid
mounting multiple devices on the same mount point which might result
in xfstest not being able to unmount the device later down the path.

Signed-off-by: Lukas Czerner <lczerner@xxxxxxxxxx>
---
 check | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/check b/check
index b3937b3..a26fbf7 100755
--- a/check
+++ b/check
@@ -620,6 +620,9 @@ for section in $HOST_OPTIONS_SECTIONS; do
        done
        _wrapup
        echo
+
+       umount $TEST_DEV 2> /dev/null
+       umount $SCRATCH_DEV 2> /dev/null
 done
 
 interrupt=false
-- 
1.8.3.1

<Prev in Thread] Current Thread [Next in Thread>