mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
tests - fix rm command
This commit is contained in:
parent
991ddb9eb9
commit
48a6ba6328
1 changed files with 3 additions and 3 deletions
|
|
@ -37,7 +37,7 @@ class Test(ABC) :
|
|||
rm_dirs = ["configs", "plugins", "www"]
|
||||
for rm_dir in rm_dirs :
|
||||
if isdir(rm_dir) :
|
||||
run("rm -rf /tmp/bw-data/" + rm_dir, shell=True)
|
||||
run("sudo rm -rf /tmp/bw-data/" + rm_dir, shell=True)
|
||||
if not isdir("/tmp/tests") :
|
||||
mkdir("/tmp/tests")
|
||||
except :
|
||||
|
|
@ -52,9 +52,9 @@ class Test(ABC) :
|
|||
rm_dirs = ["configs", "plugins", "www"]
|
||||
for rm_dir in rm_dirs :
|
||||
if isdir("/tmp/bw-data/" + rm_dir) :
|
||||
run("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("/tmp/tests/" + self._name, shell=True)
|
||||
run("sudo rm -rf /tmp/tests/" + self._name, shell=True)
|
||||
copytree("./examples/" + self._name, "/tmp/tests/" + self._name)
|
||||
except :
|
||||
self._log("exception while running Test._setup_test()\n" + format_exc(), error=True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue