diff --git a/scripts/remote-reconcile.sh b/scripts/remote-reconcile.sh index dc28a68f..2d331cbc 100755 --- a/scripts/remote-reconcile.sh +++ b/scripts/remote-reconcile.sh @@ -304,7 +304,7 @@ run_health_check() { # shellcheck disable=SC1090 [[ ! -f "$rendered_env" ]] || . "$rendered_env" set +a - python3 "$repo_root/scripts/health.py" local --output "$output" 2>/dev/null + python3 "$repo_root/scripts/health.py" local --output "$output" >/dev/null 2>&1 ) || true python3 -c "import json; print(json.load(open('$output'))['status'])" 2>/dev/null || echo "unknown" } diff --git a/scripts/test_remote_reconcile.py b/scripts/test_remote_reconcile.py index 2afb82c7..3cffde10 100644 --- a/scripts/test_remote_reconcile.py +++ b/scripts/test_remote_reconcile.py @@ -283,6 +283,7 @@ def test_health_report_is_parsed_for_warning_and_failure_results(self): content = RECONCILE_SCRIPT.read_text() health = content.split("run_health_check()", 1)[1].split("# --- Main ---", 1)[0] self.assertNotIn(") && python3", health) + self.assertIn('--output "$output" >/dev/null', health) if __name__ == "__main__":