Return-Path: From: Song Cai Date: Fri, 13 Oct 2017 17:45:09 +0800 Message-ID: <20171013094525.8044-2-cais.fnst@cn.fujitsu.com> In-Reply-To: <20171013094525.8044-1-cais.fnst@cn.fujitsu.com> References: <20171013094525.8044-1-cais.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Fuego] [PATCH 02/18] add http proxy List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fuego@lists.linuxfoundation.org add http proxy for curl Signed-off-by: Song Cai --- engine/tests/Functional.curl/fuego_test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/tests/Functional.curl/fuego_test.sh b/engine/tests/Functional.curl/fuego_test.sh index 90d24dd..5f8d71a 100755 --- a/engine/tests/Functional.curl/fuego_test.sh +++ b/engine/tests/Functional.curl/fuego_test.sh @@ -1,5 +1,6 @@ function test_run { - report "if curl -o test.html www.baidu.com > /dev/null; then echo 'TEST-1 OK'; else echo 'TEST-1 FAILED'; fi;\ + report "export http_proxy=$http_proxy;\ + if curl -o test.html www.baidu.com > /dev/null; then echo 'TEST-1 OK'; else echo 'TEST-1 FAILED'; fi;\ if curl -i -r 0-1024 http://www.sina.com.cn -o sina_part1.html > /dev/null; then echo 'TEST-2 OK'; else echo 'TEST-2 FAILED'; fi;\ if curl -v www.baidu.com > /dev/null; then echo 'TEST-3 OK'; else echo 'TEST-3 FAILED'; fi;\ if curl -V > /dev/null; then echo 'TEST-4 OK'; else echo 'TEST-4 FAILED'; fi;\ -- 2.9.3.windows.3