From a4c7ba680e94741b0c06c85002ebe8ba55acfe92 Mon Sep 17 00:00:00 2001 From: Ellyse Cedeno Date: Tue, 28 Oct 2025 22:24:18 +0000 Subject: [PATCH] precreate shell redirects outputs --- tools/ralph/bin/run_smoketest.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/ralph/bin/run_smoketest.sh b/tools/ralph/bin/run_smoketest.sh index e7baffb4e..448a6e010 100755 --- a/tools/ralph/bin/run_smoketest.sh +++ b/tools/ralph/bin/run_smoketest.sh @@ -29,10 +29,15 @@ rm -rf "$LABS/tools/ralph/smoketest"/[0-9]* # Ensure smoketest directory exists and is writable mkdir -p "$LABS/tools/ralph/smoketest" -# Pre-create directories with correct ownership to avoid permission issues +# Pre-create directories and files with correct ownership to avoid permission issues # This ensures the host user creates them (with correct UID) before containers try to for ID in $RALPH_IDS; do mkdir -p "$LABS/tools/ralph/smoketest/$ID" + # Pre-create files that will be written by shell redirection or Claude Write tool + touch "$LABS/tools/ralph/smoketest/$ID/ralph.log" + touch "$LABS/tools/ralph/smoketest/$ID/TIMING_SECONDS.txt" + touch "$LABS/tools/ralph/smoketest/$ID/RESULTS.md" + touch "$LABS/tools/ralph/smoketest/$ID/SCORE.txt" done # Run smoketests