]> err.no Git - util-linux/commitdiff
tests: cleanup ts/login
authorKarel Zak <kzak@redhat.com>
Mon, 19 Jan 2009 22:59:51 +0000 (23:59 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Feb 2009 22:30:48 +0000 (23:30 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/login/checktty
tests/ts/login/islocal

index a5a132799263550354e37826a3f093d1d6e124a1..d19fb023be9c50602bdab8d6a918c80d45c129f1 100755 (executable)
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
 #
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="login"
+TS_TOPDIR="$(dirname $0)/../.."
 TS_DESC="checktty"
 
+. $TS_TOPDIR/functions.sh
 ts_init "$*"
+
 $TS_CMD_CHECKTTY  >> $TS_OUTPUT
 ts_finalize
 
index acffb07735c3b13216aefebf6738bea595d6f611..0534f7ef011807004217e50159aa1ee1134799ed 100755 (executable)
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
 #
-. ./commands.sh
-. ./functions.sh
-
-TS_COMPONENT="login"
+TS_TOPDIR="$(dirname $0)/../.."
 TS_DESC="islocal"
 
+. $TS_TOPDIR/functions.sh
 ts_init "$*"
+
 $TS_CMD_ISLOCAL "$TS_SELF/islocal.data" root nobody "" youngman youngman2 \
     abcdefghx nobo long rot al malformed \
     nonl znobody >> $TS_OUTPUT