make it easy to keep test artifacts from jobs

When troubleshooting things that are difficult to reproduce locally, like
different behaviors in the fedora_latest job, these changes make it easy to
keep the test files around after the tests run.  For example, if PNGs are
processed differently by newer Python versions.
This commit is contained in:
Hans-Christoph Steiner 2024-04-25 16:10:59 +02:00 committed by Michael Pöhn
parent 299e3e5f4c
commit 1b65e33835
2 changed files with 16 additions and 1 deletions

View file

@ -70,7 +70,10 @@ class NightlyTest(unittest.TestCase):
def tearDown(self):
self.tempdir.cleanup()
os.rmdir(self.testroot)
try:
os.rmdir(self.testroot)
except OSError: # other test modules might have left stuff around
pass
def _copy_test_debug_keystore(self):
self.dot_android.mkdir()