Skip to content

Commit f2aeb8a

Browse files
committed
Fix table generation
1 parent 7673dfd commit f2aeb8a

File tree

3 files changed

+9
-50
lines changed

3 files changed

+9
-50
lines changed

runtime-test-results/RUNTIME_TESTS_REPORT.md

Lines changed: 0 additions & 41 deletions
This file was deleted.

runtime-test-results/RUNTIME_TEST_RESULTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Runtime Tests Report
1+
## Runtime Test Results
22

33
:x: **The test workflows are failing. Please check the run logs.** :x:
44

@@ -32,6 +32,6 @@ unity|2/2 :white_check_mark:|2/2 :white_check_mark:|2/2 :white_check_mark:|2/2 :
3232
wifi|2/2 :white_check_mark:|1/1 :white_check_mark:|1/1 :white_check_mark:|-|-|2/2 :white_check_mark:|3/3 :white_check_mark:
3333

3434

35-
Generated on: 2025/08/13 03:13:20
35+
Generated on: 2025/08/14 03:47:23
3636

37-
[Build, Hardware and QEMU run](https://github.com/espressif/arduino-esp32/actions/runs/16925907743) / [Wokwi run](https://github.com/espressif/arduino-esp32/actions/runs/16926425822)
37+
[Commit](https://github.com/espressif/arduino-esp32/commit/ead6c1cc9485d1f68d369c643c3efd8358f2a283) / [Build, Hardware and QEMU run](https://github.com/espressif/arduino-esp32/actions/runs/16954782974) / [Wokwi run](https://github.com/espressif/arduino-esp32/actions/runs/16955272712)

runtime-test-results/table_generator.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
# Get commit SHA from command line argument or environment variable
1616
commit_sha = None
1717
if len(sys.argv) < 2 or len(sys.argv) > 3:
18-
print("Usage: python table_generator.py <test_results.json> [commit_sha]")
18+
print("Usage: python table_generator.py <test_results.json> [commit_sha]", file=sys.stderr)
1919
sys.exit(1)
2020
elif len(sys.argv) == 3: # Commit SHA is provided as argument
2121
commit_sha = sys.argv[2]
2222
elif "GITHUB_SHA" in os.environ: # Commit SHA is provided as environment variable
2323
commit_sha = os.environ["GITHUB_SHA"]
2424
else: # Commit SHA is not provided
25-
print("Commit SHA is not provided. Please provide it as an argument or set the GITHUB_SHA environment variable.")
25+
print("Commit SHA is not provided. Please provide it as an argument or set the GITHUB_SHA environment variable.", file=sys.stderr)
2626
sys.exit(1)
2727

2828
# Generate the table
@@ -41,7 +41,6 @@
4141
pass
4242

4343
print("### Validation Tests")
44-
print("")
4544

4645
proc_test_data = {}
4746
target_list = []
@@ -76,6 +75,7 @@
7675
target_list = sorted(target_list)
7776

7877
for platform in proc_test_data:
78+
print("")
7979
print(f"#### {platform.capitalize()}")
8080
print("")
8181
print("Test", end="")
@@ -127,6 +127,6 @@
127127
with open("test_results.json", "w") as f:
128128
json.dump(results_data, f, indent=2)
129129

130-
print(f"\nTest results saved to test_results.json")
131-
print(f"Commit SHA: {commit_sha}")
132-
print(f"Tests failed: {results_data['tests_failed']}")
130+
print(f"\nTest results saved to test_results.json", file=sys.stderr)
131+
print(f"Commit SHA: {commit_sha}", file=sys.stderr)
132+
print(f"Tests failed: {results_data['tests_failed']}", file=sys.stderr)

0 commit comments

Comments
 (0)