Skip to contentSkip to conversation

tests: cleanup ts_is_mounted

PATCH Applied Bernhard Voelker 2 participants 2 messages Jul 31, 2012 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: cleanup ts_is_mounted

Quoted 2 lines

From c30efb198ea1e6e62712de7e3e3369ffa2d296ff Mon Sep 17 00:00:00 2001

From: Bernhard Voelker <[email protected]>
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.

---
 tests/functions.sh |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
tests/functions.sh +0 -3
index 0613505..9716534 100644
@@ -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
 
Signature · 1 line
1.7.7
maintainer Applied
#1 lore raw
Quoted 2 lines · Bernhard Voelker
 tests/functions.sh |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com