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 <ricardo.martincoski@gmail.com>
Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Ricardo Martincoski 2017-07-23 18:44:16 -03:00 committed by Thomas Petazzoni
parent 02770ce47d
commit 046f968775

View File

@ -17,6 +17,10 @@ class Builder(object):
config_file = os.path.join(self.builddir, ".config") config_file = os.path.join(self.builddir, ".config")
with open(config_file, "w+") as cf: with open(config_file, "w+") as cf:
cf.write(self.config) 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", cmd = ["make",
"O={}".format(self.builddir), "O={}".format(self.builddir),