]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
don't print scratch mkfs and mount options without scratch device
authorChristoph Hellwig <hch@lst.de>
Tue, 7 Jul 2009 14:20:59 +0000 (16:20 +0200)
committerChristoph Hellwig <hch@brick.lst.de>
Tue, 7 Jul 2009 14:20:59 +0000 (16:20 +0200)
Also clean up the way the test configuration is printed.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
check

diff --git a/check b/check
index 1aae528c84c3dddf28ac189e3dfc354cab235d6f..5768be68fb6f8f720815a9d8f81a5dc1af99183b 100755 (executable)
--- a/check
+++ b/check
@@ -161,18 +161,15 @@ rm -f check.full
 
 [ -f check.time ] || touch check.time
 
-FULL_FSTYP_DETAILS=`_full_fstyp_details`
-FULL_HOST_DETAILS=`_full_platform_details`
-FULL_MKFS_OPTIONS=`_scratch_mkfs_options`
-FULL_MOUNT_OPTIONS=`_scratch_mount_options`
-
-cat <<EOF
-FSTYP         -- $FULL_FSTYP_DETAILS
-PLATFORM      -- $FULL_HOST_DETAILS
-MKFS_OPTIONS  -- $FULL_MKFS_OPTIONS
-MOUNT_OPTIONS -- $FULL_MOUNT_OPTIONS
-
-EOF
+# print out our test configuration
+echo "FSTYP         -- `_full_fstyp_details`"
+echo "PLATFORM      -- `_full_platform_details`"
+if [ ! -z "$SCRATCH_DEV" ]; then
+  echo "MKFS_OPTIONS  -- `_scratch_mkfs_options`"
+  echo "MOUNT_OPTIONS -- `_scratch_mount_options`"
+fi
+echo
+
 
 if [ ! -z "$SCRATCH_DEV" ]; then
   umount $SCRATCH_DEV 2>/dev/null