Skip to content

Commit 1f9603c

Browse files
committed
chore: README
1 parent 4710066 commit 1f9603c

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

config.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,11 @@ FIRST_RUN_MARKER="$SCRIPT_DIR/.configured"
161161
BACKUP_PREFIX="webdev_backup"
162162
DATE_FORMAT="%Y-%m-%d_%H-%M-%S"
163163

164-
# When running the test suite, use test defaults if user has not configured source/dest
164+
# When running the test suite, always use test defaults (CI and local runs)
165+
# This overrides user config so tests pass regardless of committed paths
165166
if [ -n "${RUNNING_TESTS:-}" ]; then
166-
if [ ${#DEFAULT_SOURCE_DIRS[@]} -eq 0 ]; then
167-
DEFAULT_SOURCE_DIRS=("$SCRIPT_DIR/test-projects")
168-
fi
169-
if [ -z "$DEFAULT_BACKUP_DIR" ]; then
170-
DEFAULT_BACKUP_DIR="$SCRIPT_DIR/test/backup_out"
171-
fi
167+
DEFAULT_SOURCE_DIRS=("$SCRIPT_DIR/test")
168+
DEFAULT_BACKUP_DIR="$SCRIPT_DIR/test/backup_out"
172169
fi
173170

174171
# ----------------------------------------------------------------------------------

0 commit comments

Comments
 (0)