|
5 | 5 |
|
6 | 6 | SUCCESS_SYMBOL = ":white_check_mark:"
|
7 | 7 | FAILURE_SYMBOL = ":x:"
|
| 8 | +ERROR_SYMBOL = ":fire:" |
8 | 9 |
|
9 | 10 | # Load the JSON file passed as argument to the script
|
10 | 11 | with open(sys.argv[1], "r") as f:
|
|
51 | 52 | if target not in proc_test_data[platform][test_name]:
|
52 | 53 | proc_test_data[platform][test_name][target] = {
|
53 | 54 | "failures": 0,
|
54 |
| - "total": 0 |
| 55 | + "total": 0, |
| 56 | + "errors": 0 |
55 | 57 | }
|
56 | 58 |
|
57 | 59 | proc_test_data[platform][test_name][target]["total"] += test["tests"]
|
58 |
| - proc_test_data[platform][test_name][target]["failures"] += test["failures"] + test["errors"] |
| 60 | + proc_test_data[platform][test_name][target]["failures"] += test["failures"] |
| 61 | + proc_test_data[platform][test_name][target]["errors"] = test["errors"] |
59 | 62 |
|
60 | 63 | target_list = sorted(target_list)
|
61 | 64 |
|
|
79 | 82 | for target in target_list:
|
80 | 83 | if target in targets:
|
81 | 84 | test_data = targets[target]
|
82 |
| - print(f"|{test_data['total']-test_data['failures']}/{test_data['total']}", end="") |
83 |
| - if test_data["failures"] > 0: |
84 |
| - print(f" {FAILURE_SYMBOL}", end="") |
| 85 | + if test_data["errors"] > 0: |
| 86 | + print(f"|Error {ERROR_SYMBOL}", end="") |
85 | 87 | else:
|
86 |
| - print(f" {SUCCESS_SYMBOL}", end="") |
| 88 | + print(f"|{test_data['total']-test_data['failures']}/{test_data['total']}", end="") |
| 89 | + if test_data["failures"] > 0: |
| 90 | + print(f" {FAILURE_SYMBOL}", end="") |
| 91 | + else: |
| 92 | + print(f" {SUCCESS_SYMBOL}", end="") |
87 | 93 | else:
|
88 | 94 | print("|-", end="")
|
89 | 95 | print("")
|
|
0 commit comments