Skip to content

Commit a4c7ba6

Browse files
committed
precreate shell redirects outputs
1 parent 7bb002a commit a4c7ba6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/ralph/bin/run_smoketest.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,15 @@ rm -rf "$LABS/tools/ralph/smoketest"/[0-9]*
2929
# Ensure smoketest directory exists and is writable
3030
mkdir -p "$LABS/tools/ralph/smoketest"
3131

32-
# Pre-create directories with correct ownership to avoid permission issues
32+
# Pre-create directories and files with correct ownership to avoid permission issues
3333
# This ensures the host user creates them (with correct UID) before containers try to
3434
for ID in $RALPH_IDS; do
3535
mkdir -p "$LABS/tools/ralph/smoketest/$ID"
36+
# Pre-create files that will be written by shell redirection or Claude Write tool
37+
touch "$LABS/tools/ralph/smoketest/$ID/ralph.log"
38+
touch "$LABS/tools/ralph/smoketest/$ID/TIMING_SECONDS.txt"
39+
touch "$LABS/tools/ralph/smoketest/$ID/RESULTS.md"
40+
touch "$LABS/tools/ralph/smoketest/$ID/SCORE.txt"
3641
done
3742

3843
# Run smoketests

0 commit comments

Comments
 (0)