tests: refactor VppDiedError.
- Move Exception into same module as TestCase.
- Move the error reporting logic inside the error.
- Allows testing of the returncode and signal_name for tests to consume.
- Fix the signal reporting code:
VppDiedError: VPP subprocess died unexpectedly with returncode -6 [unknown].
displays as:
VppDiedError: VPP subprocess died unexpectedly with return code: -6 [SIGABRT].
Type: test
Change-Id: I8488ab318a596c9b737308829cedfb7e96e57302
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
This commit is contained in:
committed by
Andrew Yourtchenko
parent
b98dbb1f2f
commit
496b0dee7f
@@ -3,8 +3,7 @@
|
||||
from __future__ import print_function
|
||||
from multiprocessing import Pipe
|
||||
from sys import exit
|
||||
from hook import VppDiedError
|
||||
from framework import VppTestCase, KeepAliveReporter
|
||||
from framework import VppDiedError, VppTestCase, KeepAliveReporter
|
||||
|
||||
|
||||
class SanityTestCase(VppTestCase):
|
||||
|
||||
Reference in New Issue
Block a user