From 48a6ba6328d270f952982c4a90932b9d2f8cb1a9 Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 13 Jul 2022 21:26:44 +0200 Subject: [PATCH] tests - fix rm command --- tests/Test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Test.py b/tests/Test.py index 971921302..98b395a56 100644 --- a/tests/Test.py +++ b/tests/Test.py @@ -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)