]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
testing/infra/builder: dump defconfig to log
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Sun, 23 Jul 2017 21:44:16 +0000 (18:44 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 24 Jul 2017 15:50:45 +0000 (17:50 +0200)
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>
support/testing/infra/builder.py

index a475bb0a3021b1c8d173cc75f9fe2bc0a6eaab67..905b127c91d7145ac2ff543fa7e4314b54211f6e 100644 (file)
@@ -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),