]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/qemurunner: Use oe._exit(), not sys.exit()
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 25 Sep 2021 09:21:58 +0000 (10:21 +0100)
committerAnuj Mittal <anuj.mittal@intel.com>
Wed, 29 Sep 2021 08:22:10 +0000 (16:22 +0800)
commita99e23c403abd8e520079e2e216d87e713559682
treec5a832f148e67afb69026e53d5b6c1c386c7c7b1
parent26109606df69374d06046b758492fb16fa224db9
oeqa/qemurunner: Use oe._exit(), not sys.exit()

sys.exit will cause finally statements and other code to run at exit. Since
we're using os.fork() here, os._exit() is apprioriate in this codepath.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ec08498ff29de9ccd23be88b9d7af3dab6bbb81e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/lib/oeqa/utils/qemurunner.py