Skip to content

Commit f88bcdb

Browse files
authored
fix(plugin) fix tests on AlmaLinux 8 (#6099)
Refs: CTOR-2261
1 parent c70ad7d commit f88bcdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/centreon/plugins/curllogger.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ SKIP: {
256256
password => 'Pa$$w@rd' , curl_opt => [ "CURLOPT_AWS_SIGV4 => osc" ] } };
257257

258258
eval "CURLOPT_AWS_SIGV4";
259-
if ($@) {
259+
my $curl = `curl --aws-sigv4 2>&1` // '';
260+
if ($@ || $curl =~ /is unknown/) {
260261
print "test ".$test->{title}."\n";
261262
skip "CURLOPT_AWS_SIGV4 is unsupported on this platform", 5;
262263
}

0 commit comments

Comments
 (0)