Skip to content

Commit db2973e

Browse files
Brad Housesergepetrenko
authored andcommitted
travis: CloudFlare does not allow T_ANY requests, so live tests that use it fail. Disable.
1 parent 81d23c3 commit db2973e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ before_script:
9696
if [ "$BUILD_TYPE" = "valgrind" ]; then
9797
export TEST_WRAP='valgrind --leak-check=full'
9898
# Skip container tests as valgrind doesn't cope with clone()
99-
export TEST_FILTER="--gtest_filter=-*Container*"
99+
export TEST_FILTER="--gtest_filter=-*Container*:-*LiveSearchANY*"
100100
fi
101101
- |
102102
if [ "$BUILD_TYPE" = "ios" ]; then

travis/test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/sh
22
set -e
3+
4+
# Travis on MacOS uses CloudFlare's DNS (1.1.1.1/1.0.0.1) which rejects ANY requests
5+
# Note res_ninit() and /etc/resolv.conf actually have different configs, bad Travis
6+
[ -z "$TEST_FILTER" ] && export TEST_FILTER="--gtest_filter=-*LiveSearchANY*"
7+
38
if [ "$BUILD_TYPE" != "ios" -a "$BUILD_TYPE" != "analyse" -a "$BUILD_TYPE" != "cmake" -a "$BUILD_TYPE" != "valgrind" ]; then
49
$TEST_WRAP ./adig www.google.com
510
$TEST_WRAP ./acountry www.google.com

0 commit comments

Comments
 (0)