mirror of https://github.com/tstack/lnav.git
[tests] set TZ when doing touch
This commit is contained in:
parent
df0d3aed0c
commit
fd19759bf5
|
@ -1,2 +1,2 @@
|
|||
[1m[4mbasename(filepath) [0m[1m[4m descriptor [0m[1m[4m mimetype [0m[1m[4m content [0m
|
||||
[1mlogfile_syslog.1.gz[0m[1m [0m[1mnet.zlib.gzip.header[0m[1m [0m[1mapplication/json[0m[1m [0m[1m{"name":"logfile_syslog.1","mtime":"2007-11-03T16:23:00.000","comment":""} [0m
|
||||
[1mlogfile_syslog.1.gz[0m[1m [0m[1mnet.zlib.gzip.header[0m[1m [0m[1mapplication/json[0m[1m [0m[1m{"name":"logfile_syslog.1","mtime":"2007-11-03T09:23:00.000","comment":""} [0m
|
||||
|
|
|
@ -312,7 +312,7 @@ Nov 03 09:23:38 2007 -- 000
|
|||
Nov 03 09:47:02 2007 -- 000
|
||||
EOF
|
||||
|
||||
touch -t 200711030923 ${srcdir}/logfile_syslog.1
|
||||
env TZ=UTC touch -t 200711030923 ${srcdir}/logfile_syslog.1
|
||||
run_test ./drive_logfile -t -f syslog_log ${srcdir}/logfile_syslog.1
|
||||
|
||||
check_output "Syslog timestamp interpreted incorrectly for year end?" <<EOF
|
||||
|
|
Loading…
Reference in New Issue