feat: expected out for asciifile check

This commit is contained in:
zzjc1234 2024-04-10 19:06:36 +08:00
parent 263f2e6387
commit dc13cbecb0
2 changed files with 38 additions and 38 deletions

View File

@ -1,5 +1,5 @@
[
{ [{
"name of check" : "RepoSize", "name of check" : "RepoSize",
"stdout" : "Checking repository size: OK", "stdout" : "Checking repository size: OK",
"exit code" : 0, "exit code" : 0,
@ -22,9 +22,10 @@
}, },
{ {
"name of check" : "NonAsciiFiles", "name of check" : "NonAsciiFiles",
"stdout": "Checking for non-ascii files: OK", "stdout" : "Checking for non-ascii files: Failed",
"exit code": 0, "exit code" : 1,
"stderr": "", "stderr" : "Non-ASCII characters found in the following "
"files:\n\texamples/repohealth/asciifile/nonascii.txt",
"errorLog" : null "errorLog" : null
}, },
{ {
@ -33,5 +34,4 @@
"exit code" : 0, "exit code" : 0,
"stderr" : "", "stderr" : "",
"errorLog" : null "errorLog" : null
} }]
]

View File

@ -1,3 +1,3 @@
#!bash #!bash
./build/healthcheck -root=./examples/repohealth/asciifile -meta=readme -whitelist=.*\.md -whitelist=.*\.json -whitelist=.*\.sh -whitelist=.git.* -whitelist=.*\.txt ./build/healthcheck -root=./examples/repohealth/asciifile -whitelist=.*\.md -whitelist=.*\.json -whitelist=.*\.sh -whitelist=.git.* -whitelist=.*\.txt