Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Stop container before removing TEST_APP_DIR to release the open file …
Browse files Browse the repository at this point in the history
…handles
  • Loading branch information
Michal Lesiak committed Dec 14, 2022
1 parent 1bce6e7 commit f04f870
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import subprocess

from common import DUNE_EXE,TEST_PATH
from container import container


PROJECT_NAME = "test_app"
Expand All @@ -27,6 +28,9 @@
def remove_existing():
""" Remove an existing `./test_app` dir. """

cntr = container('dune_container', 'dune:latest')
cntr.stop()

if os.path.exists(TEST_APP_DIR):
print("Removing TEST_APP_DIR: ", TEST_APP_DIR)
shutil.rmtree(TEST_APP_DIR)
Expand Down

0 comments on commit f04f870

Please sign in to comment.