mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* fix deprecation; fix indentation
* git clone: use -q
* fix Warning: pragma before generic parameter list is deprecated; fix typo
* bugfix: sysTypeFromName("float64") was never cached
25 lines
621 B
Nim
25 lines
621 B
Nim
## Print summary of failed tests for CI
|
|
|
|
import os, json, sets, strformat
|
|
|
|
const skip = toHashSet(["reDisabled", "reIgnored", "reSuccess", "reJoined"])
|
|
|
|
when isMainModule:
|
|
for fn in walkFiles("testresults/*.json"):
|
|
let entries = fn.readFile().parseJson()
|
|
for j in entries:
|
|
let res = j["result"].getStr()
|
|
if skip.contains(res):
|
|
continue
|
|
echo fmt """
|
|
Category: {j["category"].getStr()}
|
|
Name: {j["name"].getStr()}
|
|
Action: {j["action"].getStr()}
|
|
Result: {res}
|
|
-------- Expected -------
|
|
{j["expected"].getStr()}
|
|
--------- Given --------
|
|
{j["given"].getStr()}
|
|
-------------------------
|
|
"""
|