mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-23 00:48:44 +00:00
tests - force removing directories with DockerTest
This commit is contained in:
parent
d1d2e51a31
commit
da2f6cb4f4
1 changed files with 2 additions and 0 deletions
|
|
@ -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 :
|
||||
|
|
|
|||
Loading…
Reference in a new issue