diff options
author | Ricardo Martincoski <ricardo.martincoski@gmail.com> | 2017-10-29 12:06:01 -0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2018-04-01 19:59:36 +0200 |
commit | 998300c5f55f61e928acfd352bc4cc24f36f8f7d (patch) | |
tree | a9ea453256fd2e4d65ce7c2f64cfa14348347333 /support/testing/infra/basetest.py | |
parent | b19cb8143b0c1337d370010550532c4fc23124d9 (diff) | |
download | buildroot-998300c5f55f61e928acfd352bc4cc24f36f8f7d.tar.gz buildroot-998300c5f55f61e928acfd352bc4cc24f36f8f7d.zip |
testing/infra/builder: split configure() from build()
Some test cases don't use a full build as setup, so split the build()
method into configure() and build().
It allows a test case to perform configuration at the setup stage and
the build inside the test itself.
Call this new method just before build in the BRTest base class, to keep
the current behavior for existing test cases.
This change will be needed when adding a common class to test the git
download infra.
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@datacom.ind.br>
Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'support/testing/infra/basetest.py')
-rw-r--r-- | support/testing/infra/basetest.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/support/testing/infra/basetest.py b/support/testing/infra/basetest.py index b85e8627fd..f3f13ad97f 100644 --- a/support/testing/infra/basetest.py +++ b/support/testing/infra/basetest.py @@ -58,6 +58,7 @@ class BRTest(unittest.TestCase): if not self.b.is_finished(): self.show_msg("Building") + self.b.configure() self.b.build() self.show_msg("Building done") |