]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/selftest: improve config writing and cleanup
authorRoss Burton <ross.burton@intel.com>
Mon, 19 Oct 2015 14:58:26 +0000 (15:58 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 Oct 2015 21:55:06 +0000 (22:55 +0100)
commitad33259b507914bfc8de92d1df12e0974157900e
tree0778a606edd6ec0cb2975d88bf86d1b289189abe
parent2a4ecc88ca10ef6abe55dddb96842b579b73497c
oeqa/selftest: improve config writing and cleanup

The selftest.inc configuration file is deleted in both tearDown() and setUp() so
there's no need to use addCleanup() to remove statements from it.

Use write_config instead of append_config if the intention is to start from an
empty config file, for clarity.

Finally remove some misleading comments that claim that append_config() writes
to local.conf when it doesn't.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/selftest/bbtests.py
meta/lib/oeqa/selftest/buildoptions.py
meta/lib/oeqa/selftest/imagefeatures.py