mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
tests - remove only content of subfolders
This commit is contained in:
parent
4eff0c3f9d
commit
3a46d318ee
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ class Test(ABC) :
|
|||
rm_dirs = ["configs", "plugins", "www"]
|
||||
for rm_dir in rm_dirs :
|
||||
if isdir("/tmp/bw-data/" + rm_dir) :
|
||||
run("sudo rm -rf /tmp/bw-data/" + rm_dir, shell=True)
|
||||
run("sudo rm -rf /tmp/bw-data/" + rm_dir + "/*", shell=True)
|
||||
if isdir("/tmp/tests/" + self._name) :
|
||||
run("sudo rm -rf /tmp/tests/" + self._name, shell=True)
|
||||
copytree("./examples/" + self._name, "/tmp/tests/" + self._name)
|
||||
|
|
Loading…
Reference in a new issue