Skip to content

Commit adb43fc

Browse files
committed
Fixed composer command line to run unit tests
1 parent cbb06a6 commit adb43fc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.ci/static-check-unit-test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ composer run-script static_check
4444
# Run unit tests
4545
composerCommandToRunUnitTests=(composer run-script --)
4646
phpUnitConfigFile=$(php ./tests/ElasticApmTests/Util/runSelectPhpUnitConfigFile.php --tests-type=unit)
47-
composerCommandToRunUnitTests=("${composerCommandToRunUnitTests[@]}" run_unit_tests_custom_config -c "${phpUnitConfigFile})
47+
composerCommandToRunUnitTests=("${composerCommandToRunUnitTests[@]}" run_unit_tests_custom_config -c "${phpUnitConfigFile}")
4848
if [ "${ELASTIC_APM_PHP_TESTS_AGENT_ENABLED_CONFIG_DEFAULT:?}" == "false" ]; then
49-
composerCommandToRunUnitTests=("${composerCommandToRunUnitTests[@]}" --filter "AgentEnabledConfigUnitTest")
49+
composerCommandToRunUnitTests=("${composerCommandToRunUnitTests[@]}" --filter AgentEnabledConfigUnitTest)
5050
fi
51+
echo "composerCommandToRunUnitTests: ${composerCommandToRunUnitTests[@]}"
5152
"${composerCommandToRunUnitTests[@]}"
5253
ls -l ./build/unit-tests-phpunit-junit.xml
5354

.ci/validate_agent_installation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function runComponentTests () {
3131
composerCommand=("${composerCommand[@]}" --filter "${ELASTIC_APM_PHP_TESTS_FILTER}")
3232
fi
3333
else
34-
composerCommand=("${composerCommand[@]}" --filter "AgentEnabledConfigComponentTest")
34+
composerCommand=("${composerCommand[@]}" --filter AgentEnabledConfigComponentTest)
3535
fi
3636

3737
local initialTimeoutInMinutes=30

0 commit comments

Comments
 (0)