Skip to content

Commit ca73088

Browse files
authored
Merge pull request #136 from convenient/patch-1
Fix Integration tests add DISABLE_DATABASE_DUMP flag
2 parents 48b5c7d + 9765db2 commit ca73088

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

magento-integration-tests/entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ test -z "${MAGENTO_VERSION}" && MAGENTO_VERSION=$CE_VERSION
1818
test -z "$MAGENTO_VERSION" && MAGENTO_VERSION="2.4.3-p1"
1919
test -z "$PROJECT_NAME" && PROJECT_NAME="magento/project-community-edition"
2020
test -z "${REPOSITORY_URL}" && REPOSITORY_URL="https://repo-magento-mirror.fooman.co.nz/"
21+
test -z "$DISABLE_DATABASE_DUMP" && DISABLE_DATABASE_DUMP="1"
2122

2223
if [[ "$MAGENTO_VERSION" == "2.4."* ]]; then
2324
ELASTICSEARCH=1
@@ -125,6 +126,11 @@ if [[ ! -z "$INPUT_MAGENTO_POST_INSTALL_SCRIPT" && -f "${GITHUB_WORKSPACE}/$INPU
125126
. ${GITHUB_WORKSPACE}/$INPUT_MAGENTO_POST_INSTALL_SCRIPT
126127
fi
127128

129+
if [[ "$DISABLE_DATABASE_DUMP" == "1" ]]; then
130+
echo "Disabling phpunit.xml database dump"
131+
sed -i 's/protected \$dumpDb = true;/protected \$dumpDb = false;/' "$MAGENTO_ROOT/dev/tests/integration/framework/Magento/TestFramework/Application.php"
132+
fi
133+
128134
echo "Trying phpunit.xml file $PHPUNIT_FILE"
129135
if [[ ! -z "$PHPUNIT_FILE" ]] ; then
130136
PHPUNIT_FILE=${GITHUB_WORKSPACE}/${PHPUNIT_FILE}

0 commit comments

Comments
 (0)