Fix load harness cleanup exit code and record passing smoke evidence

This commit is contained in:
2026-10-12 02:43:12 +00:00
parent edb3da74a1
commit 4e4698c8d4
2 changed files with 42 additions and 1 deletions
File diff suppressed because one or more lines are too long
+4 -1
View File
@@ -43,7 +43,10 @@ cleanup() {
"$ROOT/scripts/svc.sh" u7load stop >/dev/null 2>&1 || true
"$ROOT/scripts/svc.sh" rm u7load --purge >/dev/null 2>&1 || true
fi
[[ $KEEP -eq 1 ]] && echo "[load] --keep:栈保留(PG=u7load:$PG_PORT,app=127.0.0.1:$APP_PORT,结果 $RESULTS)"
if [[ $KEEP -eq 1 ]]; then
echo "[load] --keep:栈保留(PG=u7load:$PG_PORT,app=127.0.0.1:$APP_PORT,结果 $RESULTS)"
fi
return 0 2>/dev/null || true
}
trap cleanup EXIT