mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 01:18:26 +00:00
tests - change permissions as root
This commit is contained in:
parent
2780ee190d
commit
424b37bec9
2 changed files with 5 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ class Test(ABC) :
|
|||
try :
|
||||
if not isdir("/tmp/bw-data") :
|
||||
mkdir("/tmp/bw-data")
|
||||
chmod("/tmp/bw-data", 0o777)
|
||||
run("sudo chmod 777 /tmp/bw-data", shell=True)
|
||||
rm_dirs = ["configs", "plugins", "www"]
|
||||
for rm_dir in rm_dirs :
|
||||
if isdir(rm_dir) :
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ path.append(getcwd() + "/tests")
|
|||
|
||||
from Test import Test
|
||||
from DockerTest import DockerTest
|
||||
from AutoconfTest import AutoconfTest
|
||||
from logger import log
|
||||
|
||||
if len(argv) != 2 :
|
||||
|
|
@ -28,6 +29,9 @@ end_fun = None
|
|||
if test_type == "docker" :
|
||||
ret = DockerTest.init()
|
||||
end_fun = DockerTest.end
|
||||
elif test_type == "autoconf" :
|
||||
ret = AutoconfTest.init()
|
||||
end_fun = AutoconfTest.end
|
||||
if not ret :
|
||||
log("TESTS", "❌", "Test.init() failed")
|
||||
exit(1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue