From da2f6cb4f47dae7ffe861f1ca2ac2fd25a8ae0d9 Mon Sep 17 00:00:00 2001 From: bunkerity Date: Wed, 20 Jul 2022 11:10:44 +0200 Subject: [PATCH] tests - force removing directories with DockerTest --- tests/DockerTest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/DockerTest.py b/tests/DockerTest.py index 092b2a1c1..25dd8efb1 100644 --- a/tests/DockerTest.py +++ b/tests/DockerTest.py @@ -51,6 +51,8 @@ class DockerTest(Test) : if isdir(example_data) : for cp_dir in listdir(example_data) : if isdir(join(example_data, cp_dir)) : + if isdir(join("/tmp/bw-data", cp_dir)) : + run("sudo rm -rf " + join("/tmp/bw-data", cp_dir), shell=True) copytree(join(example_data, cp_dir), join("/tmp/bw-data", cp_dir)) proc = run("docker-compose pull", shell=True, cwd=test) if proc.returncode != 0 :