From b19cb8143b0c1337d370010550532c4fc23124d9 Mon Sep 17 00:00:00 2001 From: Ricardo Martincoski Date: Sun, 29 Oct 2017 12:06:00 -0200 Subject: testing/infra/builder: call make with empty env Use an empty environment when calling make, but import PATH so the buildroot tree under test can find binaries from the host machine. Since environment variables are now ignored, move the handling of BR2_DL_DIR to the defconfig to keep the current precedence of -d: BR2_DL_DIR | -d DIR | test downloads | BR downloads ------------+----------+------------------+-------------- unset | unset | [error] | [error] unset | set | in $(DIR) | in $(DIR) set | unset | in $(BR2_DL_DIR) | in $(BR2_DL_DIR) set | set | in $(DIR) | in $(DIR) Signed-off-by: Ricardo Martincoski Cc: Arnout Vandecappelle Cc: Thomas Petazzoni Cc: Yann E. MORIN Signed-off-by: Thomas Petazzoni --- support/testing/infra/basetest.py | 1 + 1 file changed, 1 insertion(+) (limited to 'support/testing/infra/basetest.py') diff --git a/support/testing/infra/basetest.py b/support/testing/infra/basetest.py index 754922692c..b85e8627fd 100644 --- a/support/testing/infra/basetest.py +++ b/support/testing/infra/basetest.py @@ -42,6 +42,7 @@ class BRTest(unittest.TestCase): self.testname = self.__class__.__name__ self.builddir = self.outputdir and os.path.join(self.outputdir, self.testname) self.emulator = None + self.config += '\nBR2_DL_DIR="{}"\n'.format(self.downloaddir) self.config += "\nBR2_JLEVEL={}\n".format(self.jlevel) def show_msg(self, msg): -- cgit v1.2.3