Skip to content

Commit 8cde159

Browse files
committed
test: add timestamps in devtool messages
Add timestamps so we can measure how each step takes. Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent dd88e38 commit 8cde159

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

tools/devtool

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,6 @@ cmd_test() {
590590
ensure_build_dir
591591

592592
# If we got to here, we've got all we need to continue.
593-
say "$(date -u +'%F %H:%M:%S %Z')"
594593
say "Kernel version: $(uname -r)"
595594
say "Starting test run ..."
596595

@@ -622,7 +621,6 @@ cmd_test() {
622621

623622
ret=$?
624623

625-
say "$(date -u +'%F %H:%M:%S %Z')"
626624
say "Finished test run ..."
627625

628626
if [[ $ramdisk = true ]]; then

tools/functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ MY_NAME="Firecracker $(basename "$ARG0")"
1515
#
1616
say() {
1717
[ -t 1 ] && [ -n "$TERM" ] \
18-
&& echo "$(tput setaf 2)[$MY_NAME]$(tput sgr0) $*" \
18+
&& echo "$(tput setaf 2)[$MY_NAME $(date -Iseconds)]$(tput sgr0) $*" \
1919
|| echo "[$MY_NAME] $*"
2020
}
2121

0 commit comments

Comments
 (0)