diff --git a/support/testing/infra/basetest.py b/support/testing/infra/basetest.py index b85e8627fd..f3f13ad97f 100644 --- a/support/testing/infra/basetest.py +++ b/support/testing/infra/basetest.py @@ -58,6 +58,7 @@ class BRTest(unittest.TestCase): if not self.b.is_finished(): self.show_msg("Building") + self.b.configure() self.b.build() self.show_msg("Building done") diff --git a/support/testing/infra/builder.py b/support/testing/infra/builder.py index 36f4801a2d..faf1eb1494 100644 --- a/support/testing/infra/builder.py +++ b/support/testing/infra/builder.py @@ -12,7 +12,7 @@ class Builder(object): self.builddir = builddir self.logfile = infra.open_log_file(builddir, "build", logtofile) - def build(self): + def configure(self): if not os.path.isdir(self.builddir): os.makedirs(self.builddir) @@ -33,6 +33,8 @@ class Builder(object): if ret != 0: raise SystemError("Cannot olddefconfig") + def build(self): + env = {"PATH": os.environ["PATH"]} cmd = ["make", "-C", self.builddir] ret = subprocess.call(cmd, stdout=self.logfile, stderr=self.logfile, env=env)