]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
check test output
authorStefan Schubert <schubi@suse.de>
Tue, 30 Jan 2024 14:49:24 +0000 (15:49 +0100)
committerStefan Schubert <schubi@suse.de>
Tue, 30 Jan 2024 14:49:24 +0000 (15:49 +0100)
tests/ts/lslogins/checkuser

index 5f0f33a52306f57c804e54469f2d5a8a7c22069b..b04f824b51c6bd87c61d76587da0fb6d8321da44 100755 (executable)
@@ -17,12 +17,13 @@ if [ $? -eq 0 ]; then
     if [ $? -ne 0 ]; then
        ts_die "Cannot find test-tty for user root in lastlog2.db"
     fi
-    $TS_CMD_LSLOGINS -L --lastlog2="${0%/*}/lastlog2.db" root |grep "test-host" >>/dev/null
+    $TS_CMD_LSLOGINS -L --lastlog2="${0%/*}/lastlog2.db" root |grep "test-host" >/dev/null
     if [ $? -ne 0 ]; then
        ts_die "Cannot find test-host for user root in lastlog2.db"
     fi
-    $TS_CMD_LSLOGINS -L --lastlog2="${0%/*}/lastlog2.db" root |grep "Jan29/16:45" >>/dev/null
+    $TS_CMD_LSLOGINS -L --lastlog2="${0%/*}/lastlog2.db" root |grep "Jan29/16:45" >/dev/null
     if [ $? -ne 0 ]; then
+       echo `$TS_CMD_LSLOGINS -L --lastlog2="${0%/*}/lastlog2.db" root` >> $TS_OUTPUT
        ts_die "Cannot find correct last login Jan29/16:45 for user root in lastlog2.db"
     fi    
 fi