aboutsummaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorGravatar Ricardo Martincoski <ricardo.martincoski@gmail.com>2017-07-23 18:44:16 -0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-24 17:50:45 +0200
commit046f968775dfca0038d1dc0f193088e1b4dd9f7a (patch)
tree9ebab29f14abd1a94cbb6ae8fb7cece167fd715a /support
parent02770ce47d6c358c959410e87c5218170d2e08e7 (diff)
downloadbuildroot-046f968775dfca0038d1dc0f193088e1b4dd9f7a.tar.gz
buildroot-046f968775dfca0038d1dc0f193088e1b4dd9f7a.tar.bz2
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>
Diffstat (limited to 'support')
-rw-r--r--support/testing/infra/builder.py4
1 files changed, 4 insertions, 0 deletions
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),