summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-01 11:03:20 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-02 15:59:07 +0100
commitc47ba43785ffa166ddd19cede0028191a2f765b1 (patch)
tree29289c43152c7e4097e279b7462ee95590034b62 /meta/lib/oeqa
parente2a71c7d25632b67981d80e129aae775ffcda617 (diff)
downloadpoky-c47ba43785ffa166ddd19cede0028191a2f765b1.tar.gz
oeqa/selftest/sstatetests: Add easier debug option
In order to debug these selftest failures you end up having to comment out the file cleanup. Make this an option at the top of the file to make it a bit easier, I've had to do this too many times now. (From OE-Core rev: ae69d48b0e5b58b18553a6b3cd03ffbd3f369aa3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/selftest/cases/sstatetests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/sstatetests.py b/meta/lib/oeqa/selftest/cases/sstatetests.py
index e978313c61..febafdb2f7 100644
--- a/meta/lib/oeqa/selftest/cases/sstatetests.py
+++ b/meta/lib/oeqa/selftest/cases/sstatetests.py
@@ -18,6 +18,9 @@ from oeqa.selftest.case import OESelftestTestCase
18import oe 18import oe
19import bb.siggen 19import bb.siggen
20 20
21# Set to True to preserve stamp files after test execution for debugging failures
22keep_temp_files = False
23
21class SStateBase(OESelftestTestCase): 24class SStateBase(OESelftestTestCase):
22 25
23 def setUpLocal(self): 26 def setUpLocal(self):
@@ -35,6 +38,10 @@ class SStateBase(OESelftestTestCase):
35 self.target_os = bb_vars['TARGET_OS'] 38 self.target_os = bb_vars['TARGET_OS']
36 self.distro_specific_sstate = os.path.join(self.sstate_path, self.hostdistro) 39 self.distro_specific_sstate = os.path.join(self.sstate_path, self.hostdistro)
37 40
41 def track_for_cleanup(self, path):
42 if not keep_temp_files:
43 super().track_for_cleanup(path)
44
38 # Creates a special sstate configuration with the option to add sstate mirrors 45 # Creates a special sstate configuration with the option to add sstate mirrors
39 def config_sstate(self, temp_sstate_location=False, add_local_mirrors=[]): 46 def config_sstate(self, temp_sstate_location=False, add_local_mirrors=[]):
40 self.temp_sstate_location = temp_sstate_location 47 self.temp_sstate_location = temp_sstate_location