aboutsummaryrefslogtreecommitdiff
path: root/mobly
diff options
context:
space:
mode:
authorJon Wolverton <wolverdude@users.noreply.github.com>2022-12-06 22:25:16 -0800
committerGitHub <noreply@github.com>2022-12-06 22:25:16 -0800
commit9238569ac251d3574c98ff751c523073f0d5e50d (patch)
treec2efa3c6aab44895274067e5bf4ddbae7ef548d7 /mobly
parentf788d4181d6ec10f2a881ca56ef9b7a3b09ae0ee (diff)
downloadmobly-9238569ac251d3574c98ff751c523073f0d5e50d.tar.gz
Don't mutate BaseTestClass.record_data() argument. (#856)
Diffstat (limited to 'mobly')
-rw-r--r--mobly/base_test.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mobly/base_test.py b/mobly/base_test.py
index 1742f19..5b1e98f 100644
--- a/mobly/base_test.py
+++ b/mobly/base_test.py
@@ -660,6 +660,7 @@ class BaseTestClass:
content: dict, the data to add to summary file.
"""
if 'timestamp' not in content:
+ content = content.copy()
content['timestamp'] = utils.get_current_epoch_time()
self.summary_writer.dump(content, records.TestSummaryEntryType.USER_DATA)