fix: bad testcase for whitelisted chars

This commit is contained in:
王韵晨520370910012 2026-04-07 22:59:21 -07:00
parent bb9bc06fd5
commit 08aaaf1c3a
GPG Key ID: F28AB6AE26FFED6F
2 changed files with 41 additions and 14 deletions

View File

@ -9,12 +9,48 @@
"args": [
"/tmp/repo-health-checker",
"-root=.",
"-allowedDomainList=example.com",
"-allowedDomainList=outlook.com",
"-whitelistedChars=\u6d4b"
]
],
"env": [
"PATH=/usr/bin:/bin"
],
"cpuLimit": 10000000000,
"memoryLimit": 104857600,
"procLimit": 50,
"copyInDir": ".",
"copyIn": {
"/tmp/repo-health-checker": {
"src": "./../../../../../../build/repo-health-checker"
}
},
"copyOut": [
"stdout",
"stderr"
],
"stdin": {
"content": ""
},
"stdout": {
"name": "stdout",
"max": 4096
},
"stderr": {
"name": "stderr",
"max": 4096
}
}
}
}
},
"parsers": [
{
"name": "healthcheck",
"with": {
"score": 10,
"comment": " + comment from toml conf"
}
}
]
}
]
}
}

View File

@ -1,10 +1 @@
{
"failed": false,
"msgContains": [
"### Non-ASCII Characters File Check Passed"
],
"msgNotContains": [
"### Non-ASCII Characters File Check Failed"
],
"stderrContains": []
}
[{"name":"healthcheck","results":[{"score":10,"comment":"### Repo Size Check Passed\n### Repo LFS Check Passed\n### Forbidden File Check Passed\n### Meta File Check Passed\n### Non-ASCII Characters File Check Passed\n### Non-ASCII Characters Commit Message Check Passed\n### Repo File Check Passed\n### Author Email Check Passed\n"}],"force_quit":false}]