summaryrefslogtreecommitdiff
path: root/tests/appveyor.pm
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2020-03-03 20:05:58 +0100
committerMarc Hoersken <info@marc-hoersken.de>2020-03-03 22:13:57 +0100
commite7c144f1d1ba8e26eb3c044597cd7a1ffe8959bb (patch)
treee3dcdd7d21db4cb61af0e9f5c39b413d7ac8699c /tests/appveyor.pm
parente4b4ccbc67219908fa2bb1fde8f2b971b05f25d5 (diff)
downloadcurl-e7c144f1d1ba8e26eb3c044597cd7a1ffe8959bb.tar.gz
ci/tests: fix escaping of testnames and disable proxy for CI APIs
Follow up to ada581f and c0d8b96 Closes #5031
Diffstat (limited to 'tests/appveyor.pm')
-rw-r--r--tests/appveyor.pm11
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'
}