[v2,1/3] testsuite: Allow test cases to fail due to unresolved DTB conflicts

Message ID 20260430131057.2960671-2-wzh@ilbers.de
State Under Review
Headers show
Series Revert "prefix DTB files with PN in deploy dir" | expand

Commit Message

Zhihang Wei April 30, 2026, 1:10 p.m. UTC
Since the patches resolving DTB deployment conflicts have been reverted,
the affected test cases are allowed to fail until a proper fix is in
place. These test cases are also moved to a separate TMP dir to prevent
them from affecting other test cases.

Signed-off-by: Zhihang Wei <wzh@ilbers.de>
---
 testsuite/citest.py | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)

Patch

diff --git a/testsuite/citest.py b/testsuite/citest.py
index fc6ec24c..b3866675 100755
--- a/testsuite/citest.py
+++ b/testsuite/citest.py
@@ -243,7 +243,6 @@  class CrossTest(CIBaseTest):
             'mc:qemuarm-bookworm:isar-image-ci',
             'mc:qemuarm64-focal:isar-image-base',
             'mc:nanopi-neo-efi-bookworm:isar-image-base',
-            'mc:phyboard-mira-trixie:isar-image-base',
         ]
 
         self.init()
@@ -416,6 +415,16 @@  class CrossTest(CIBaseTest):
         self.perform_build_test(targets, lines=lines,
                                 image_install='test-all-deponlycross')
 
+    def test_cross_mira_trixie(self):
+        targets = [
+            'mc:phyboard-mira-trixie:isar-image-base',
+        ]
+
+        self.init()
+        self.move_in_build_dir('tmp', 'tmp_cross')
+        self.perform_build_test(targets)
+        self.move_in_build_dir('tmp', 'tmp_cross_mira_trixie')
+
 class PrebuiltTest(CIBaseTest):
     """
     Tests associated with prebuilt artifacts (containers, debs).
@@ -697,7 +706,11 @@  class DtbDeployTest(CIBaseTest):
         ]
 
         self.init()
-        self.perform_build_test(targets, image_install='')
+        self.move_in_build_dir('tmp', 'tmp_before_dtbdeploy')
+        try:
+            self.perform_build_test(targets, image_install='')
+        except exceptions.TestFail:
+            self.cancel('KFAIL')
 
     def test_dtb_deploy_images(self):
         """
@@ -709,7 +722,12 @@  class DtbDeployTest(CIBaseTest):
         ]
 
         self.init()
-        self.perform_build_test(targets, image_install='')
+        try:
+            self.perform_build_test(targets, image_install='')
+        except exceptions.TestFail:
+            self.cancel('KFAIL')
+        finally:
+            self.move_in_build_dir('tmp', 'tmp_dtbdeploy')
 
 
 class NoCrossTest(CIBaseTest):