diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2020-08-09 15:56:59 +0200 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2020-08-09 21:33:35 +0200 |
commit | 421cf55ab2dda8ca870edba620ef8674bf70c0f3 (patch) | |
tree | 6a8816be4635522d84337710b098ff43efb7f5a4 /tests/azure.pm | |
parent | 451925764c5b4ee38541c478ae95371dacb2f857 (diff) | |
download | curl-421cf55ab2dda8ca870edba620ef8674bf70c0f3.tar.gz |
CI/azure: fix test outcome values and use latest API version
This makes sure that tests ignored or skipped are not shown
just in the category "Other", but with their correct state.
Closes #5796
Diffstat (limited to 'tests/azure.pm')
-rw-r--r-- | tests/azure.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/azure.pm b/tests/azure.pm index 9dcb56c78..004c3d309 100644 --- a/tests/azure.pm +++ b/tests/azure.pm @@ -48,7 +48,7 @@ sub azure_create_test_run { 'build': {'id': '$ENV{'BUILD_BUILDID'}'} } " \\ - "$azure_baseurl/_apis/test/runs?api-version=5.0"`; + "$azure_baseurl/_apis/test/runs?api-version=5.1"`; if($azure_run =~ /"id":(\d+)/) { return $1; } @@ -75,7 +75,7 @@ sub azure_create_test_result { } ] " \\ - "$azure_baseurl/_apis/test/runs/$azure_run_id/results?api-version=5.0"`; + "$azure_baseurl/_apis/test/runs/$azure_run_id/results?api-version=5.1"`; if($azure_result =~ /\[\{"id":(\d+)/) { return $1; } @@ -92,10 +92,10 @@ sub azure_update_test_result { my $azure_duration = sprintf("%.0f", ($stop-$start)*1000); my $azure_outcome; if($error == 2) { - $azure_outcome = 'Not applicable'; + $azure_outcome = 'NotApplicable'; } elsif($error < 0) { - $azure_outcome = 'Not executed'; + $azure_outcome = 'NotExecuted'; } elsif(!$error) { $azure_outcome = 'Passed'; @@ -118,7 +118,7 @@ sub azure_update_test_result { } ] " \\ - "$azure_baseurl/_apis/test/runs/$azure_run_id/results?api-version=5.0"`; + "$azure_baseurl/_apis/test/runs/$azure_run_id/results?api-version=5.1"`; if($azure_result =~ /\[\{"id":(\d+)/) { return $1; } @@ -136,7 +136,7 @@ sub azure_update_test_run { 'state': 'Completed' } " \\ - "$azure_baseurl/_apis/test/runs/$azure_run_id?api-version=5.0"`; + "$azure_baseurl/_apis/test/runs/$azure_run_id?api-version=5.1"`; if($azure_run =~ /"id":(\d+)/) { return $1; } |