summaryrefslogtreecommitdiff
path: root/bin
diff options
authorSylvain Pineau <sylvain.pineau@canonical.com>2020-01-08 10:53:19 +0100
committerSylvain Pineau <sylvain.pineau@canonical.com>2020-01-08 10:53:19 +0100
commit8d5183c1ece79ae7e10e623e8f08a8fbde23d468 (patch)
tree78f6cadf4cb3ea92ac30816d7d467555a5df87fe /bin
parented8c052e6f850e9075c777671c1ac46ae445decf (diff)
bin:pm_test: Fix typo preventing comments to be available in reports
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pm_test4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pm_test b/bin/pm_test
index f455858..1ac0c53 100755
--- a/bin/pm_test
+++ b/bin/pm_test
@@ -68,7 +68,7 @@ def main():
operation.teardown()
result = {
'outcome': 'fail',
- 'comment': message,
+ 'comments': message,
}
with open(os.path.join(args.log_dir, '__result'), 'wt') as f:
json.dump(result, f)
@@ -268,7 +268,7 @@ class PowerManagementOperation():
if problems:
result = {
'outcome': 'fail' if problems else 'pass',
- 'comment': problems,
+ 'comments': problems,
}
result_filename = os.path.join(self.args.log_dir, '__result')
with open(result_filename, 'wt') as f: