summaryrefslogtreecommitdiffstats
path: root/support/testing
diff options
context:
space:
mode:
Diffstat (limited to 'support/testing')
-rw-r--r--support/testing/infra/basetest.py4
-rw-r--r--support/testing/infra/builder.py3
2 files changed, 3 insertions, 4 deletions
diff --git a/support/testing/infra/basetest.py b/support/testing/infra/basetest.py
index 493dea5125..d6fcc619b1 100644
--- a/support/testing/infra/basetest.py
+++ b/support/testing/infra/basetest.py
@@ -42,9 +42,7 @@ class BRTest(unittest.TestCase):
self.testname = self.__class__.__name__
self.builddir = self.outputdir and os.path.join(self.outputdir, self.testname)
self.emulator = None
- self.config = '\n'.join([line.lstrip() for line in
- self.config.splitlines()]) + '\n'
- self.config += "BR2_JLEVEL={}\n".format(self.jlevel)
+ self.config += "\nBR2_JLEVEL={}\n".format(self.jlevel)
def show_msg(self, msg):
print "{} {:40s} {}".format(datetime.datetime.now().strftime("%H:%M:%S"),
diff --git a/support/testing/infra/builder.py b/support/testing/infra/builder.py
index 905b127c91..ef66b86113 100644
--- a/support/testing/infra/builder.py
+++ b/support/testing/infra/builder.py
@@ -6,7 +6,8 @@ import infra
class Builder(object):
def __init__(self, config, builddir, logtofile):
- self.config = config
+ self.config = '\n'.join([line.lstrip() for line in
+ config.splitlines()]) + '\n'
self.builddir = builddir
self.logfile = infra.open_log_file(builddir, "build", logtofile)
OpenPOWER on IntegriCloud