mirror of
https://github.com/containers/podman.git
synced 2025-11-29 17:48:05 +08:00
Instrument system tests in hopes of tracking down #17216, the unlinkat-ebusy-hosed flake. Oh, also, timestamp.awk: timestamps have always been UTC, but add a 'Z' to make it unambiguous. Signed-off-by: Ed Santiago <santiago@redhat.com>
21 lines
570 B
Awk
21 lines
570 B
Awk
|
|
|
|
# This script is intended to be piped into by automation, in order to
|
|
# mark output lines with timing information. For example:
|
|
# /path/to/command |& awk --file timestamp.awk
|
|
|
|
BEGIN {
|
|
STARTTIME=systime()
|
|
printf "[%s] START", strftime("%T")
|
|
printf " - All [+xxxx] lines that follow are relative to %s.\n", strftime("%FT%TZ", systime(), 1)
|
|
}
|
|
|
|
{
|
|
printf "[%+05ds] %s\n", systime()-STARTTIME, $0
|
|
}
|
|
|
|
END {
|
|
printf "[%s] END", strftime("%T")
|
|
printf " - [%+05ds] total duration since %s\n", systime()-STARTTIME, strftime("%FT%TZ", systime(), 1)
|
|
}
|