diff options
| author | Damien George <damien@micropython.org> | 2025-08-18 21:27:49 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-09-08 11:24:32 +1000 |
| commit | 4a60d230c346041659348d7097363650eff6cde7 (patch) | |
| tree | a8271c90cfe98fb3181e87c66946a8da8c307b50 /tests/run-tests.py | |
| parent | bfda577a3eaa061f8752197b076cf52a426f4fb6 (diff) | |
tests/run-tests.py: Detect target sys.implementation._build if possible.
That's useful to know the exact board that's being tested.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/run-tests.py')
| -rwxr-xr-x | tests/run-tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py index 2d02e6b23..c434cd6fc 100755 --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -291,7 +291,7 @@ def detect_test_platform(pyb, args): output = run_feature_check(pyb, args, "target_info.py") if output.endswith(b"CRASH"): raise ValueError("cannot detect platform: {}".format(output)) - platform, arch, thread, float_prec, unicode = str(output, "ascii").strip().split() + platform, arch, build, thread, float_prec, unicode = str(output, "ascii").strip().split() if arch == "None": arch = None inlineasm_arch = detect_inline_asm_arch(pyb, args) @@ -305,6 +305,7 @@ def detect_test_platform(pyb, args): if arch and not args.mpy_cross_flags: args.mpy_cross_flags = "-march=" + arch args.inlineasm_arch = inlineasm_arch + args.build = build args.thread = thread args.float_prec = float_prec args.unicode = unicode |
