]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fixed time-stamp
authorStefan Schubert <schubi@suse.de>
Tue, 30 Jan 2024 17:43:12 +0000 (18:43 +0100)
committerStefan Schubert <schubi@suse.de>
Tue, 30 Jan 2024 17:43:12 +0000 (18:43 +0100)
tests/ts/lslogins/checkuser

index 9da3ac734f432b6a268b3435bb4ebda45bb38e44..d50f73fe67832f5bdc6d9be12708f90261cdfc63 100755 (executable)
@@ -28,9 +28,8 @@ if [ $? -ne 0 ]; then
     rm $TS_SELF/lastlog2.db
     ts_die "Cannot find test-host for user root in lastlog2.db"
 fi
-$TS_CMD_LSLOGINS -L --lastlog2="${TS_SELF}/lastlog2.db" root |grep "Jan29/16:45" >/dev/null
+$TS_CMD_LSLOGINS -L --lastlog2="${TS_SELF}/lastlog2.db" root |grep "Jan29/1[0-9]:45" >/dev/null
 if [ $? -ne 0 ]; then
-    echo `$TS_CMD_LSLOGINS -L --lastlog2="${TS_SELF}/lastlog2.db" root` >> $TS_OUTPUT
     rm $TS_SELF/lastlog2.db
     ts_die "Cannot find correct last login Jan29/16:45 for user root in lastlog2.db"
 fi