support/testing: move BRTest initialisation to __init__
authorArnout Vandecappelle <arnout@mind.be>
Sun, 9 Jul 2017 23:21:20 +0000 (01:21 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 10 Jul 2017 15:46:25 +0000 (17:46 +0200)
commitb78b50465c20c1733753a8dd47945cf80c9155f8
tree21506aea6b65afbd86b00c4ba49dc59af40dc079
parent73e7bcdd87f72fb186c7f9bba11a44f93cf8c1a6
support/testing: move BRTest initialisation to __init__

BRTest's setUp() method contains a few assignments that initialize its
member variables. Since we will want to use these in test case
overrides, move them to the __init__ function.

Also allow the config member to be overridden, rather than always
taking the class member.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/testing/infra/basetest.py