From: Ricardo Martincoski Date: Sun, 23 Jul 2017 21:44:16 +0000 (-0300) Subject: testing/infra/builder: dump defconfig to log X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=046f968775dfca0038d1dc0f193088e1b4dd9f7a;p=buildroot.git testing/infra/builder: dump defconfig to log The defconfig is composed on-the-fly by test infra + tests. Dump it to the logfile before running 'make olddefconfig' so it can easily analysed when debugging. Signed-off-by: Ricardo Martincoski Cc: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- diff --git a/support/testing/infra/builder.py b/support/testing/infra/builder.py index a475bb0a30..905b127c91 100644 --- a/support/testing/infra/builder.py +++ b/support/testing/infra/builder.py @@ -17,6 +17,10 @@ class Builder(object): config_file = os.path.join(self.builddir, ".config") with open(config_file, "w+") as cf: cf.write(self.config) + # dump the defconfig to the logfile for easy debugging + self.logfile.write("> start defconfig\n" + self.config + + "> end defconfig\n") + self.logfile.flush() cmd = ["make", "O={}".format(self.builddir),