diff mbox series

[v5,4/7] testing/infra/basetest: support br2-external

Message ID 1543896530-33550-4-git-send-email-matthew.weber@rockwellcollins.com
State Superseded
Headers show
Series [v5,1/7] package/compiler-rt: new package | expand

Commit Message

Matt Weber Dec. 4, 2018, 4:08 a.m. UTC
From: Ricardo Martincoski <ricardo.martincoski@datacom.ind.br>

Some upcoming test cases can use one or more br2-external trees as
fixtures that provide packages used only in runtime tests.

Add support for br2-external into the BRTest class. Any test case can
then provide a list of paths for be used as br2-external trees during
the build of the image to be tested.

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@datacom.ind.br>
Cc: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
 - New from: http://patchwork.ozlabs.org/patch/912354/

v2 -> v3
 - Updated patch commit description context.

 - None

 - Rebased post 2018.11 on master
 support/testing/infra/basetest.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series


diff --git a/support/testing/infra/basetest.py b/support/testing/infra/basetest.py
index 5014fef..8413943 100644
--- a/support/testing/infra/basetest.py
+++ b/support/testing/infra/basetest.py
@@ -30,6 +30,7 @@  MINIMAL_CONFIG = \
 class BRTest(unittest.TestCase):
     config = None
+    br2_external = list()
     downloaddir = None
     outputdir = None
     logtofile = True
@@ -58,7 +59,7 @@  class BRTest(unittest.TestCase):
         if not self.b.is_finished():
-            self.b.configure()
+            self.b.configure(["BR2_EXTERNAL={}".format(":".join(self.br2_external))])
             self.show_msg("Building done")