tests - force removing directories with DockerTest

This commit is contained in:
bunkerity 2022-07-20 11:10:44 +02:00
parent d1d2e51a31
commit da2f6cb4f4
No known key found for this signature in database
GPG key ID: 3D80806F12602A7C

View file

@ -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 :