diff options
Diffstat (limited to 'tests/appveyor.pm')
-rw-r--r-- | tests/appveyor.pm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/appveyor.pm b/tests/appveyor.pm index 6ed83dd22..4906d2c8c 100644 --- a/tests/appveyor.pm +++ b/tests/appveyor.pm @@ -35,8 +35,11 @@ sub appveyor_check_environment { sub appveyor_create_test_result { my ($testnum, $testname)=@_; + $testname =~ s/\\/\\\\/g; + $testname =~ s/\'/\\\'/g; + $testname =~ s/\"/\\\"/g; my $appveyor_baseurl="$ENV{'APPVEYOR_API_URL'}"; - my $appveyor_result=`curl --silent \\ + my $appveyor_result=`curl --silent --noproxy "*" \\ --header "Content-Type: application/json" \\ --data " { @@ -80,7 +83,7 @@ sub appveyor_update_test_result { $appveyor_category = 'Error'; } my $appveyor_baseurl="$ENV{'APPVEYOR_API_URL'}"; - my $appveyor_result=`curl --silent --request PUT \\ + my $appveyor_result=`curl --silent --noproxy "*" --request PUT \\ --header "Content-Type: application/json" \\ --data " { @@ -94,11 +97,11 @@ sub appveyor_update_test_result { "$appveyor_baseurl/api/tests"`; print $appveyor_result; if($appveyor_category eq 'Error') { - $appveyor_result=`curl --silent \\ + $appveyor_result=`curl --silent --noproxy "*" \\ --header "Content-Type: application/json" \\ --data " { - 'message': '$testname', + 'message': '$testname $appveyor_outcome', 'category': '$appveyor_category', 'details': 'Test $testnum $appveyor_outcome' } |