Skip to content

Commit 028cf7f

Browse files
keith-zephyrcfriedt
authored andcommitted
twister: fix environment:os tag
Set the environment:os tag to the return value of platform.system(), which is more useful than os.name() which always returns "posix". Signed-off-by: Keith Short <[email protected]>
1 parent 755deaa commit 028cf7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/pylib/twister/twisterlib/reports.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from datetime import datetime
1313
from enum import Enum
1414
from pathlib import Path
15+
from platform import system as platform_system
1516

1617
from colorama import Fore
1718
from twisterlib.statuses import TwisterStatus
@@ -302,7 +303,7 @@ def json_report(self, filename, version="NA", platform=None, filters=None):
302303
report_options = self.env.non_default_options()
303304

304305
report = {}
305-
report["environment"] = {"os": os.name,
306+
report["environment"] = {"os": platform_system(),
306307
"zephyr_version": version,
307308
"toolchain": self.env.toolchain,
308309
"commit_date": self.env.commit_date,

0 commit comments

Comments
 (0)