]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/selftest/base: backup and restore local configuration files
authorJose Lamego <jose.a.lamego@linux.intel.com>
Wed, 21 Sep 2016 19:54:59 +0000 (12:54 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Sep 2016 13:56:17 +0000 (14:56 +0100)
commit0877278e07e4c2494c4c23199490dc47a5cee69d
treee6bc70a4229cc66d81fb34e9392516c417d11b47
parentcf548fd85297585cc5688eda45ee332200bbd4b7
oeqa/selftest/base: backup and restore local configuration files

Selftests' cleanup method during test setup is not capable of
restoring local configuration files that remain modified after
aborting a test through a keyboard interruption.
This change creates backups for local.conf and bblayers.conf at
test setup, restore them when found, and deletes them at cleanup.

[YOCTO #9390]

Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/selftest/base.py