tests: refactor VppDiedError. 64/20264/6
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Thu, 20 Jun 2019 16:24:12 +0000 (12:24 -0400)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 24 Jun 2019 16:03:09 +0000 (16:03 +0000)
commit496b0dee7f6fe4a0b18c5a5993c11840fd9a1ccc
tree167dd4fbddfcc41980f175381f719be75b4d8cf5
parentb98dbb1f2f94aba78a1b37c70721b562d13e1d7c
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>
MAINTAINERS
test/framework.py
test/hook.py
test/sanity_run_vpp.py