diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2020-10-12 06:52:40 +0200 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2020-10-13 06:57:02 +0200 |
commit | 0a99281c214794cf013297075b49e29bde1de566 (patch) | |
tree | 92207098827fcba66db31281b0871de760f022b7 /tests/appveyor.pm | |
parent | d707a9fa6477d6d1ac06b0e630b0970fe549adad (diff) | |
download | curl-0a99281c214794cf013297075b49e29bde1de566.tar.gz |
CI/tests: use verification curl for test reporting APIs
Avoid using our own, potentially installed, curl for
the test reporting APIs in case it is broken.
Reviewed-by: Daniel Stenberg
Preparation for #6049
Closes #6063
Diffstat (limited to 'tests/appveyor.pm')
-rw-r--r-- | tests/appveyor.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/appveyor.pm b/tests/appveyor.pm index 64b2ab3ba..1b3889dc0 100644 --- a/tests/appveyor.pm +++ b/tests/appveyor.pm @@ -34,12 +34,12 @@ sub appveyor_check_environment { } sub appveyor_create_test_result { - my ($testnum, $testname)=@_; + my ($curl, $testnum, $testname)=@_; $testname =~ s/\\/\\\\/g; $testname =~ s/\'/\\\'/g; $testname =~ s/\"/\\\"/g; my $appveyor_baseurl="$ENV{'APPVEYOR_API_URL'}"; - my $appveyor_result=`curl --silent --noproxy "*" \\ + my $appveyor_result=`$curl --silent --noproxy "*" \\ --header "Content-Type: application/json" \\ --data " { @@ -55,7 +55,7 @@ sub appveyor_create_test_result { } sub appveyor_update_test_result { - my ($testnum, $error, $start, $stop)=@_; + my ($curl, $testnum, $error, $start, $stop)=@_; my $testname=$APPVEYOR_TEST_NAMES{$testnum}; if(!defined $testname) { return; @@ -83,7 +83,7 @@ sub appveyor_update_test_result { $appveyor_category = 'Error'; } my $appveyor_baseurl="$ENV{'APPVEYOR_API_URL'}"; - my $appveyor_result=`curl --silent --noproxy "*" --request PUT \\ + my $appveyor_result=`$curl --silent --noproxy "*" --request PUT \\ --header "Content-Type: application/json" \\ --data " { @@ -98,7 +98,7 @@ sub appveyor_update_test_result { "$appveyor_baseurl/api/tests"`; print "AppVeyor API result: $appveyor_result\n" if ($appveyor_result); if($appveyor_category eq 'Error') { - $appveyor_result=`curl --silent --noproxy "*" \\ + $appveyor_result=`$curl --silent --noproxy "*" \\ --header "Content-Type: application/json" \\ --data " { |