[PATCH] tests: cleanup ts_is_mounted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From c30efb198ea1e6e62712de7e3e3369ffa2d296ff Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <mail@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 31 Jul 2012 08:24:13 +0200
Subject: [PATCH] tests: cleanup ts_is_mounted

* tests/functions.sh (ts_is_mounted): Remove check for canonicalization
failure again, because it is now done by ts_canonicalize.

Signed-off-by: Bernhard Voelker <mail@xxxxxxxxxxxxxxxxxxx>
---
 tests/functions.sh |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/tests/functions.sh b/tests/functions.sh
index 0613505..9716534 100644
--- a/tests/functions.sh
+++ b/tests/functions.sh
@@ -394,9 +394,6 @@ function ts_device_has_uuid {

 function ts_is_mounted {
 	local DEV=$(ts_canonicalize "$1")
-	if [ ".$DEV" = '.' ]; then
-	  DEV=$1
-	fi

 	grep -q $DEV /proc/mounts && return 0

-- 
1.7.7


--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux