[openssl] master update
dev at ddvo.net
dev at ddvo.net
Mon Aug 3 06:32:07 UTC 2020
The branch master has been updated
via a677190779705d243cca88ae04f2105dee52672d (commit)
from 0f9fdefeb05768b86f4364a8e976c87ee197638e (commit)
- Log -----------------------------------------------------------------
commit a677190779705d243cca88ae04f2105dee52672d
Author: Dr. David von Oheimb <David.von.Oheimb at siemens.com>
Date: Mon Jul 27 08:50:27 2020 +0200
81-test_cmp_cli.t: Skip tests with mock server if server cannot be started
Fixes #12514
Reviewed-by: Paul Dale <paul.dale at oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12537)
-----------------------------------------------------------------------
Summary of changes:
test/recipes/81-test_cmp_cli.t | 34 +++++++++++++++++++---------------
1 file changed, 19 insertions(+), 15 deletions(-)
diff --git a/test/recipes/81-test_cmp_cli.t b/test/recipes/81-test_cmp_cli.t
index 51b4baf6a5..8c4f0f920a 100644
--- a/test/recipes/81-test_cmp_cli.t
+++ b/test/recipes/81-test_cmp_cli.t
@@ -217,23 +217,27 @@ indir data_dir() => sub {
foreach my $server_name (@server_configurations) {
$server_name = chop_dblquot($server_name);
load_config($server_name, $server_name);
- my $pid;
- if ($server_name eq "Mock") {
- indir "Mock" => sub {
- $pid = start_mock_server("");
- die "Cannot start or find the started CMP mock server" unless $pid;
+ SKIP:
+ {
+ my $pid;
+ if ($server_name eq "Mock") {
+ indir "Mock" => sub {
+ $pid = start_mock_server("");
+ skip "Cannot start or find the started CMP mock server",
+ scalar @all_aspects unless $pid;
+ }
}
- }
- foreach my $aspect (@all_aspects) {
- $aspect = chop_dblquot($aspect);
- next if $server_name eq "Mock" && $aspect eq "certstatus";
- load_config($server_name, $aspect); # update with any aspect-specific settings
- indir $server_name => sub {
- my $tests = load_tests($server_name, $aspect);
- test_cmp_cli_aspect($server_name, $aspect, $tests);
+ foreach my $aspect (@all_aspects) {
+ $aspect = chop_dblquot($aspect);
+ next if $server_name eq "Mock" && $aspect eq "certstatus";
+ load_config($server_name, $aspect); # update with any aspect-specific settings
+ indir $server_name => sub {
+ my $tests = load_tests($server_name, $aspect);
+ test_cmp_cli_aspect($server_name, $aspect, $tests);
+ };
};
- };
- stop_mock_server($pid) if $pid;
+ stop_mock_server($pid) if $pid;
+ }
};
};
More information about the openssl-commits
mailing list