]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/targetcontrol.py: Separate the matching of supported image fstypes from the...
authorCorneliu Stoicescu <corneliux.stoicescu@intel.com>
Mon, 23 Jun 2014 12:59:44 +0000 (15:59 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Jun 2014 18:53:00 +0000 (19:53 +0100)
commit50ddd5d0149666ad60133d8eb6cc789c5b97e5e4
tree4badbb43cb56c52670c22c6627beec9e185414b1
parent01968e9244d0cf3deb1ec5cfb8e562d3b364add6
oeqa/targetcontrol.py: Separate the matching of supported image fstypes from the resulting value check.

Because we used a bb.fatal call inside the get_image_fstype classmethod, this caused problems when accessed without instantiating the object with a valid bb environment.

Separating the matching part of the classmethod(that is usable by outside scripts) from the check of the resulting value.
The matching is done within a new classmethod and the latter keeps the old method name and internal functionality, this way we don't have to change any other target controllers code.

Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/targetcontrol.py