]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/selftest/case: Add recipeinc method
authorOla x Nilsson <ola.x.nilsson@axis.com>
Mon, 28 Aug 2017 14:58:15 +0000 (16:58 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Sep 2017 16:10:49 +0000 (17:10 +0100)
commitcdb431676456f47da1a3b70caddf49f083948798
treee642f773f4a48cbbd98b9c9051d18b2d46bc1e9d
parentaa5b9edbd9c4495befe1912a5b401b536be39d5b
oeqa/selftest/case: Add recipeinc method

The recipeinc method returns the absolute path of the test_recipe.inc
file of a specified recipe.  It replaces four instances of identical
code, and make it possible to access the filename from a testcase for
cleanup.

The write_recipeinc and append_recipeinc methods are changed to return
the path to the file in case that is useful.

The test_recipe.inc file is usually cleaned up in a finally block,
but that block executes before any teardown operations.  This blocks
any teardown that requires the presence of the test_recipe.inc file.

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/selftest/case.py