]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
unifiy test output
authorStefan Schubert <schubi@suse.de>
Wed, 31 Jan 2024 09:49:37 +0000 (10:49 +0100)
committerStefan Schubert <schubi@suse.de>
Wed, 31 Jan 2024 09:49:37 +0000 (10:49 +0100)
tests/expected/lslogins/checkuser
tests/ts/lslogins/checkuser

index 584c809e38523d1d7fea07773889a4ce3cc1574e..b68c2dcf006b4400d00633cf4976677d271fcda5 100644 (file)
@@ -1,7 +1,2 @@
-Username:                           root                                
-Last login:                         Jan29/07:45                         
-Last terminal:                      test-tty                            
-Last hostname:                      test-host                           
-
-Last logs:
-
+USER  LAST-LOGIN LAST-TTY LAST-HOSTNAME
+root Jan30/02:45 test-tty test-host
index 5971285b6d36dda393618ab80cf0521854342dcb..74b1e35c12d8788321069b201a65f4342259106a 100755 (executable)
@@ -18,7 +18,7 @@ fi
 sqlite3 $TS_SELF/lastlog2.db < $TS_SELF/create_db.sql
 
 # tests for lastlog2 environment
-TZ=US/Pacific "$TS_CMD_LSLOGINS" --lastlog-file=/dev/null --lastlog2-file="${TS_SELF}/lastlog2.db" --wtmp-file=/dev/null --btmp-file=/dev/null --output USER,LAST-LOGIN,LAST-TTY,LAST-HOSTNAME root > "$TS_OUTPUT"
+TZ=US/Pacific "$TS_CMD_LSLOGINS" --lastlog-file=/dev/null --lastlog2-file="${TS_SELF}/lastlog2.db" --wtmp-file=/dev/null --btmp-file=/dev/null --output USER,LAST-LOGIN,LAST-TTY,LAST-HOSTNAME --logins=root > "$TS_OUTPUT"
 
 rm $TS_SELF/lastlog2.db
 ts_finalize