From 61e63bf4e14eddebdd99814cf2633c2e638cd21c Mon Sep 17 00:00:00 2001 From: Paul Vinciguerra Date: Sat, 24 Nov 2018 21:19:38 -0800 Subject: make test: Fix too wide subprocess exceptions When a command fails, CalledProcessError is raised. testing with except: masks other failures. Change-Id: I7e3a6739411cb6a4c13e96dd123aff9159213fea Signed-off-by: Paul Vinciguerra --- test/test_jvpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_jvpp.py') diff --git a/test/test_jvpp.py b/test/test_jvpp.py index 36dbdb2b391..6151ebdbb20 100644 --- a/test/test_jvpp.py +++ b/test/test_jvpp.py @@ -135,7 +135,7 @@ class TestJVpp(VppTestCase): self.logger.info("Process output : {0}{1}".format(os.linesep, out)) if self.process.returncode != 0: - raise Exception( + raise subprocess.CalledProcessError( "Command {0} failed with return code: {1}.{2}" "Process error output: {2}{3}" .format(command, self.process.returncode, os.linesep, err)) -- cgit 1.2.3-korg