]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/selftest/{context,case}: Handle KeyboardInterrupt/SIGINT and SIGTERM
authorAníbal Limón <anibal.limon@linux.intel.com>
Fri, 23 Jun 2017 20:10:38 +0000 (15:10 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Jul 2017 07:44:20 +0000 (08:44 +0100)
commit9419c81e69d2facc82e39c846466670c09e6b444
tree624fcc0eb5cd6c586304a480e40c2d9a34d6d5f6
parent7281c995ff2b009c3fb23c7af1d91fe106ca8f87
oeqa/selftest/{context,case}: Handle KeyboardInterrupt/SIGINT and SIGTERM

In order to avoid corrupt local.conf and bblayers.conf adds
signal handler for SIGTERM and use try/finally (KeyboardIntrrupt) block
to restore previously backuped configuration.

[YOCTO #11650]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
meta/lib/oeqa/selftest/case.py
meta/lib/oeqa/selftest/context.py