diff --git a/tests/Test.py b/tests/Test.py index 7a9f9ac29..99fa8ab51 100644 --- a/tests/Test.py +++ b/tests/Test.py @@ -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) : diff --git a/tests/main.py b/tests/main.py index a1e1fb43a..2983b6ff5 100755 --- a/tests/main.py +++ b/tests/main.py @@ -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)