diff --git a/tests/disk_check_test.py b/tests/disk_check_test.py index 5a6c60dd5a..c9c5a4e2d4 100644 --- a/tests/disk_check_test.py +++ b/tests/disk_check_test.py @@ -248,5 +248,5 @@ def test_do_unmnt(self, mock_proc, mock_log): @classmethod def teardown_class(cls): - subprocess.run("rm -rf /tmp/tmp*", shell=True) # cleanup the temporary dirs + subprocess.run(["rm", "-rf", "/tmp/tmpx", "/tmp/tmpy"]) # cleanup the temporary dirs print("TEARDOWN")