diff options
author | Joshua Lock <joshua.g.lock@intel.com> | 2016-11-23 13:22:02 +0000 |
---|---|---|
committer | Joshua Lock <joshua.g.lock@intel.com> | 2016-12-05 15:36:27 +0000 |
commit | 65250a5537da220dff662269cb81d086b66c2ace (patch) | |
tree | c0b1fc6c9e8471346c416b964eff583f51d26589 /meta/classes/testimage.bbclass | |
parent | 11063a01d4511b2688ea7ba2d7359e4e07328c66 (diff) | |
download | openembedded-core-contrib-65250a5537da220dff662269cb81d086b66c2ace.tar.gz |
meta: remove True option to getVar calls
getVar() now defaults to expanding by default, thus remove the True
option from getVar() calls with a regex search and replace.
Search made with the following regex: getVar ?\(( ?[^,()]*), True\)
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Diffstat (limited to 'meta/classes/testimage.bbclass')
-rw-r--r-- | meta/classes/testimage.bbclass | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 6b6781d860..770ec801c2 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass @@ -130,8 +130,8 @@ def testimage_main(d): from oeqa.targetcontrol import get_target_controller from oeqa.utils.dump import get_host_dumper - pn = d.getVar("PN", True) - bb.utils.mkdirhier(d.getVar("TEST_LOG_DIR", True)) + pn = d.getVar("PN") + bb.utils.mkdirhier(d.getVar("TEST_LOG_DIR")) test_create_extract_dirs(d) # we need the host dumper in test context @@ -176,10 +176,10 @@ def testimage_main(d): target.stop() def test_create_extract_dirs(d): - install_path = d.getVar("TEST_INSTALL_TMP_DIR", True) - package_path = d.getVar("TEST_PACKAGED_DIR", True) - extracted_path = d.getVar("TEST_EXTRACTED_DIR", True) - bb.utils.mkdirhier(d.getVar("TEST_LOG_DIR", True)) + install_path = d.getVar("TEST_INSTALL_TMP_DIR") + package_path = d.getVar("TEST_PACKAGED_DIR") + extracted_path = d.getVar("TEST_EXTRACTED_DIR") + bb.utils.mkdirhier(d.getVar("TEST_LOG_DIR")) bb.utils.remove(package_path, recurse=True) bb.utils.mkdirhier(install_path) bb.utils.mkdirhier(package_path) |