tests: Honor GBP_TESTS_NOCLEAN in rpm tests too
authorGuido Günther <agx@sigxcpu.org>
Wed, 27 Jan 2021 09:24:59 +0000 (10:24 +0100)
committerGuido Günther <agx@sigxcpu.org>
Sun, 31 Jan 2021 12:05:18 +0000 (13:05 +0100)
tests/20_test_rpm.py

index c261c4523ab8be92a975ec938fd2b28a91ccf1fa..fb00f500e969d13efc12ba2061a69169dba0fa58 100644 (file)
@@ -56,7 +56,8 @@ class RpmTestBase(object):
 
     def teardown(self):
         """Test case teardown"""
-        shutil.rmtree(self.tmpdir)
+        if not os.getenv("GBP_TESTS_NOCLEAN"):
+            shutil.rmtree(self.tmpdir)
 
 
 class TestSrcRpmFile(RpmTestBase):