Skip to content

Commit

Permalink
Delete right away instead of stop+rm
Browse files Browse the repository at this point in the history
  • Loading branch information
josegomezr committed Nov 13, 2023
1 parent 563b928 commit 5b8a321
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/console/sssd_389ds_functional.pm
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ sub run {
assert_script_run(qq(sed -i '/gpg-auto-import-keys/i\\RUN zypper rr SLE_BCI' Dockerfile_$docker)) if (check_var('BETA', '1'));
assert_script_run(qq($docker build -t ds389_image --build-arg tag="$tag" --build-arg pkgs="$pkgs" -f Dockerfile_$docker .), timeout => 600);

# Cleanup the container
assert_script_run(qq($docker stop ds389_container -t 0 || true"));
assert_script_run(qq($docker rm -f ds389_container || true"));
# Cleanup the container in case a previous run did not cleanup properly, no need to assert
script_run(qq($docker rm -f ds389_container"));

my $container_run_389_ds = "$docker run -itd --shm-size=256m --name ds389_container --hostname ldapserver";

Expand Down

0 comments on commit 5b8a321

Please sign in to comment.