diff options
author | Ricardo Martincoski <ricardo.martincoski@gmail.com> | 2017-06-28 23:45:47 -0300 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-07-01 16:05:14 +0200 |
commit | 1df8042eadb818e2f7ed3ecac7d8e804efa8b542 (patch) | |
tree | f92f4d1c69430859816e7f9f49ed25069b6ad269 /support/testing/infra/basetest.py | |
parent | abe64676d58c6099f363cd6b2199d7804a9bf953 (diff) | |
download | buildroot-1df8042eadb818e2f7ed3ecac7d8e804efa8b542.tar.gz buildroot-1df8042eadb818e2f7ed3ecac7d8e804efa8b542.zip |
support/testing: allow to set BR2_JLEVEL
Let the user to override the default BR2_JLEVEL used for each testcase.
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/testing/infra/basetest.py')
-rw-r--r-- | support/testing/infra/basetest.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/support/testing/infra/basetest.py b/support/testing/infra/basetest.py index 557baa215c..d75458a02c 100644 --- a/support/testing/infra/basetest.py +++ b/support/testing/infra/basetest.py @@ -34,6 +34,7 @@ class BRTest(unittest.TestCase): outputdir = None logtofile = True keepbuilds = False + jlevel = None def show_msg(self, msg): print "{} {:40s} {}".format(datetime.datetime.now().strftime("%H:%M:%S"), @@ -43,7 +44,10 @@ class BRTest(unittest.TestCase): self.builddir = os.path.join(self.__class__.outputdir, self.testname) self.emulator = None self.show_msg("Starting") - self.b = Builder(self.__class__.config, self.builddir, self.logtofile) + config = self.__class__.config + if self.jlevel: + config += "BR2_JLEVEL={}\n".format(self.jlevel) + self.b = Builder(config, self.builddir, self.logtofile) if not self.keepbuilds: self.b.delete() |