File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -134,16 +134,12 @@ if [[ "${WP_CLI_TEST_COVERAGE}" == "true" ]] && vendor/bin/behat --help 2>/dev/n
134134fi
135135
136136# Run the functional tests.
137- FORMAT_SPECIFIED=false
137+ FORMAT_ARGS=(--format progress)
138138for arg in " $@ " ; do
139139 if [[ " $arg " == " --format" * ]]; then
140- FORMAT_SPECIFIED=true
140+ FORMAT_ARGS=()
141141 break
142142 fi
143143done
144144
145- if [ " $FORMAT_SPECIFIED " = true ]; then
146- vendor/bin/behat --snippets-for=" WP_CLI\Tests\Context\FeatureContext" " $BEHAT_TAGS " --strict " ${BEHAT_EXTRA_ARGS[@]} " " $@ "
147- else
148- vendor/bin/behat --snippets-for=" WP_CLI\Tests\Context\FeatureContext" --format progress " $BEHAT_TAGS " --strict " ${BEHAT_EXTRA_ARGS[@]} " " $@ "
149- fi
145+ vendor/bin/behat --snippets-for=" WP_CLI\Tests\Context\FeatureContext" " ${FORMAT_ARGS[@]} " " $BEHAT_TAGS " --strict " ${BEHAT_EXTRA_ARGS[@]} " " $@ "
You can’t perform that action at this time.
0 commit comments