summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarel Ben-Attia <harelba@gmail.com>2021-10-21 09:08:48 +0300
committerHarel Ben-Attia <harelba@gmail.com>2021-10-21 09:08:48 +0300
commit6a41b9974e80be0f249eb323ace9dbb20536dab3 (patch)
treee379d5e93174dce996f87b2449514c16bd99378a
parent4f89f2ac8699e3d56ccb191894a3a234aa98a930 (diff)
fix guard against accidental folder deletion in tests
-rwxr-xr-xtest/test_suite.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_suite.py b/test/test_suite.py
index 03f0381..21e0306 100755
--- a/test/test_suite.py
+++ b/test/test_suite.py
@@ -261,7 +261,7 @@ class AbstractQTestCase(unittest.TestCase):
return name
def cleanup_folder(self,tmpfolder):
- if not tmpfolder.startswith(os.path.realpath('/var/tmp/tmqp')):
+ if not tmpfolder.startswith(os.path.realpath('/var/tmp')):
raise Exception('Guard against accidental folder deletions: %s' % tmpfolder)
global DEBUG
if not DEBUG: