avocado.loader: Avoid uncaught exceptions while discovering jobs
Some very ugly modules use sys.exit() on imports. These are not catched
by Exception thus BaseException is required.
I did not omit KeyboardInterrupt as users get mad when ctrl+c doesn't
work. On the other hand nasty python code raising KeyboardInterrupt on
import can interrupt test-discovery (avocado list nasty.py => Interrupted
by user)
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
Showing
想要评论请 注册 或 登录