From 3a46d318ee9f77877e43c4c3736f0c064ce81ee6 Mon Sep 17 00:00:00 2001 From: bunkerity Date: Thu, 21 Jul 2022 15:26:59 +0200 Subject: [PATCH] tests - remove only content of subfolders --- tests/Test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Test.py b/tests/Test.py index 74dca72c5..2f829a016 100644 --- a/tests/Test.py +++ b/tests/Test.py @@ -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)