Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions ci/test/03_test_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,18 @@ if [ "$USE_BUSY_BOX" = "true" ]; then
patch --help
fi

# Make sure default datadir does not exist and is never read by creating a dummy file
# Set DATADIR path based on CI_OS_NAME
if [ "$CI_OS_NAME" == "macos" ]; then
echo > "${HOME}/Library/Application Support/Bitcoin"
DATADIR="${HOME}/Library/Application Support/Bitcoin"
else
echo > "${HOME}/.bitcoin"
DATADIR="${HOME}/.bitcoin"
fi

# Check if DATADIR exists (file or directory), skip if it does
if [ -e "$DATADIR" ]; then
echo "Skipping creation of $DATADIR; it already exists."
else
echo > "$DATADIR"
fi

if [ -z "$NO_DEPENDS" ]; then
Expand Down
Loading