aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/openzfs/tests/test-runner/bin/test-runner.py.in
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/openzfs/tests/test-runner/bin/test-runner.py.in')
-rwxr-xr-xsys/contrib/openzfs/tests/test-runner/bin/test-runner.py.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/contrib/openzfs/tests/test-runner/bin/test-runner.py.in b/sys/contrib/openzfs/tests/test-runner/bin/test-runner.py.in
index 5bf13f5c08af..2158208be6e5 100755
--- a/sys/contrib/openzfs/tests/test-runner/bin/test-runner.py.in
+++ b/sys/contrib/openzfs/tests/test-runner/bin/test-runner.py.in
@@ -15,6 +15,7 @@
#
# Copyright (c) 2012, 2018 by Delphix. All rights reserved.
# Copyright (c) 2019 Datto Inc.
+# Copyright (c) 2025, Klara, Inc.
#
# This script must remain compatible with Python 3.6+.
#
@@ -372,6 +373,8 @@ User: %s
stdout/stderr/merged in its own file.
"""
+ timeprefix = datetime.now().strftime('[%FT%T.%f] ')
+
logname = getpwuid(os.getuid()).pw_name
rer = ''
if self.reran is True:
@@ -383,7 +386,7 @@ User: %s
msga = 'Test: %s%s ' % (self.pathname, user)
msgb = '[%s] [%s]%s\n' % (self.result.runtime, self.result.result, rer)
pad = ' ' * (80 - (len(msga) + len(msgb)))
- result_line = msga + pad + msgb
+ result_line = timeprefix + msga + pad + msgb
# The result line is always written to the log file. If -q was
# specified only failures are written to the console, otherwise