Skip to content

Commit

Permalink
Merge pull request os-autoinst#18643 from paolostivanin/fixes
Browse files Browse the repository at this point in the history
Create dir only if it not already there
  • Loading branch information
paolostivanin authored Feb 14, 2024
2 parents 86d5f33 + aab64ae commit 0ac5bc8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/fips/openjdk/prepare_env.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use warnings;
use testapi;
use utils;
use openjdktest;
use version_utils qw(is_sle is_leap is_tumbleweed);

sub run {
my $self = @_;
Expand All @@ -30,8 +29,10 @@ sub run {
select_console "root-console";
zypper_call("in mozilla-nss-tools git-core");

assert_script_run("mkdir /etc/pki/nssdb");
script_run_interactive("certutil -d /etc/pki/nssdb -N", $interactive_str, 30);
if (script_run("test -d /etc/pki/nssdb") != 0) {
assert_script_run("mkdir /etc/pki/nssdb");
script_run_interactive("certutil -d /etc/pki/nssdb -N", $interactive_str, 30);
}
}

sub test_flags {
Expand Down

0 comments on commit 0ac5bc8

Please sign in to comment.