aboutsummaryrefslogtreecommitdiff
path: root/mobly/base_test.py
diff options
context:
space:
mode:
authorMatthew <matty3@users.noreply.github.com>2018-04-23 12:38:13 -0700
committerGitHub <noreply@github.com>2018-04-23 12:38:13 -0700
commitea6a4e17d1a8bb7b286fc547d29e8e4ec36e5412 (patch)
treed62055378af8be2502df884272e5cc4b3d1bc3dd /mobly/base_test.py
parent9764c5bcddc6d130feea70a1b0d9abb88ce2d0e1 (diff)
downloadmobly-ea6a4e17d1a8bb7b286fc547d29e8e4ec36e5412.tar.gz
Changed UserData 'timestamp' to use the same util as 'Begin Time' and 'End Time'. (#439)
Diffstat (limited to 'mobly/base_test.py')
-rw-r--r--mobly/base_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mobly/base_test.py b/mobly/base_test.py
index 8b761fa..e4e047b 100644
--- a/mobly/base_test.py
+++ b/mobly/base_test.py
@@ -26,6 +26,7 @@ from mobly import expects
from mobly import records
from mobly import signals
from mobly import runtime_test_info
+from mobly import utils
# Macro strings for test result reporting
TEST_CASE_TOKEN = '[Test]'
@@ -351,7 +352,7 @@ class BaseTestClass(object):
content: dict, the data to add to summary file.
"""
if 'timestamp' not in content:
- content['timestamp'] = time.time()
+ content['timestamp'] = utils.get_current_epoch_time()
self.summary_writer.dump(content,
records.TestSummaryEntryType.USER_DATA)