From 496b0dee7f6fe4a0b18c5a5993c11840fd9a1ccc Mon Sep 17 00:00:00 2001 From: Paul Vinciguerra Date: Thu, 20 Jun 2019 12:24:12 -0400 Subject: 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 --- test/sanity_run_vpp.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/sanity_run_vpp.py') diff --git a/test/sanity_run_vpp.py b/test/sanity_run_vpp.py index d1c29877b9b..92f250b2a6b 100644 --- a/test/sanity_run_vpp.py +++ b/test/sanity_run_vpp.py @@ -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): -- cgit 1.2.3-korg