fix(ci): align summary and Bash validation
CI / Capabilities and shell quality (push) Successful in 14s
CI / Python tests and compilation (push) Successful in 13s
CI / PowerShell tests on Ubuntu (push) Failing after 15s
CI / CI configuration security checks (push) Successful in 3s
CI / Build and inspect generated packages (push) Successful in 10s
CI / Qwen retrieval integration (push) Successful in 14m24s
CI / Bash integration and installation guards (push) Failing after 34s
CI / Installed client configuration smoke tests (push) Successful in 42s
CI / Capabilities and shell quality (push) Successful in 14s
CI / Python tests and compilation (push) Successful in 13s
CI / PowerShell tests on Ubuntu (push) Failing after 15s
CI / CI configuration security checks (push) Successful in 3s
CI / Build and inspect generated packages (push) Successful in 10s
CI / Qwen retrieval integration (push) Successful in 14m24s
CI / Bash integration and installation guards (push) Failing after 34s
CI / Installed client configuration smoke tests (push) Successful in 42s
This commit is contained in:
1 parent
6a1730c6ec
commit
cf8e7cfc1b
3 files changed
+18
-23
No files matched your search
@@ -14,14 +14,11 @@ root=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/../.." && pwd)
|
||||
home_path=${HOME:?HOME is required}
|
||||
failed=false
|
||||
check_count=0
|
||||
pass_buffer=()
|
||||
|
||||
result() {
|
||||
check_count=$((check_count + 1))
|
||||
[ "$1" != FAIL ] || failed=true
|
||||
if [ "$summary" = true ] && [ "$1" = PASS ]; then
|
||||
pass_buffer+=("$1 $2")
|
||||
else
|
||||
if [ "$summary" != true ] || [ "$1" != PASS ]; then
|
||||
printf '%s %s\n' "$1" "$2"
|
||||
fi
|
||||
}
|
||||
@@ -111,7 +108,6 @@ done
|
||||
|
||||
if [ "$summary" = true ]; then
|
||||
if [ "$failed" = true ]; then
|
||||
for line in "${pass_buffer[@]}"; do printf '%s\n' "$line"; done
|
||||
printf 'Doctor: FAIL | %s checks\n' "$check_count"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user