testing/infra/builder: split configure() from build()
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Sun, 29 Oct 2017 14:06:01 +0000 (12:06 -0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 1 Apr 2018 17:59:36 +0000 (19:59 +0200)
commit998300c5f55f61e928acfd352bc4cc24f36f8f7d
treea9ea453256fd2e4d65ce7c2f64cfa14348347333
parentb19cb8143b0c1337d370010550532c4fc23124d9
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>
support/testing/infra/basetest.py
support/testing/infra/builder.py