Skip to content

Commit e149dc2

Browse files
committed
Clean diff
1 parent 285e4f5 commit e149dc2

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

travis/script.sh

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -226,39 +226,14 @@ make_test() {
226226
NO_INTERACTION=1 \
227227
REPORT_EXIT_STATUS=1 \
228228
TEST_PHP_EXECUTABLE=$(which php) \
229-
php run-tests.php -d extension=modules/zmq.so -d ${pthreads_flag} -n tests/*.phpt
229+
php run-tests.php --show-diff -d extension=modules/zmq.so -d ${pthreads_flag} -n tests/*.phpt
230230

231231
local run_tests_exit_code=$?
232-
print_failed_tests
233-
234232
popd # pushd $build_dir
235233

236234
return $run_tests_exit_code
237235
}
238236

239-
print_failed_tests() {
240-
local build_dir="${BUILD_DIR}/php-zmq-build"
241-
242-
for test in $(ls "${build_dir}/tests/"*.phpt 2>/dev/null); do
243-
244-
local name="${test%.*}"
245-
246-
if test -f "${name}.out"
247-
then
248-
echo "-- START ${name}.out"
249-
cat "${name}.out"
250-
echo ""
251-
echo "-- END ${name}.out"
252-
echo ""
253-
echo "--- START ${name}.diff"
254-
cat "${name}.diff"
255-
echo "---"
256-
echo "-- END ${name}.diff"
257-
echo ""
258-
fi
259-
done
260-
}
261-
262237
# First, ensure that all of the tests are included in the PEAR package
263238
# definition file. If they aren't, then abort immediately, as the result of the
264239
# build is inaccurate.

0 commit comments

Comments
 (0)