Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
pwd
}
+function ts_canonicalize {
+ P="$1"
+ C=$(readlink -f $P)
+
+ if [ -n "$C" ]; then
+ echo "$C"
+ else
+ echo "$P"
+ fi
+}
+
function ts_skip_subtest {
echo " IGNORE ($1)"
}
LC_ALL="POSIX"
CHARSET="UTF-8"
+ mydir=$(ts_canonicalize "$mydir")
+
export LANG LANGUAGE LC_ALL CHARSET
TS_TOPDIR=$(ts_abspath $mydir/../../)
}
function ts_is_mounted {
- local DEV=$( readlink -f $1 )
+ local DEV=$(ts_canonicalize "$1")
if [ ".$DEV" = '.' ]; then
DEV=$1
fi