Skip to content

Commit 40d2dd8

Browse files
committed
Fix: Spring requires absolute path for --write-dir
Spring engine throws error with relative paths: "a datadir may not be specified with a relative path" Use explicit variable to ensure $(pwd)/test-data evaluates to absolute path before passing to Spring.
1 parent 95de1ad commit 40d2dd8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/smoke-test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,15 @@ jobs:
120120
echo "Starting SpringBoard smoke test with virtual display..."
121121
echo "Using Xvfb to run full spring binary (loads LuaUI + RmlUi)"
122122
123+
# IMPORTANT: Spring requires absolute path for --write-dir
124+
WRITE_DIR="$(pwd)/test-data"
125+
echo "Using write-dir: $WRITE_DIR"
126+
123127
# Run Spring with Xvfb (virtual X11 display) so LuaUI loads
124128
# This actually tests RmlUi initialization!
125129
# Sound is disabled via Sound = 0 in springsettings.cfg
126130
timeout 10s xvfb-run -a -s "-screen 0 1024x768x24" \
127-
./spring --write-dir $(pwd)/test-data script.txt || EXIT_CODE=$?
131+
./spring --write-dir "$WRITE_DIR" script.txt || EXIT_CODE=$?
128132
129133
# Wait a moment for Spring to finish writing logs
130134
sleep 2

0 commit comments

Comments
 (0)