From 2fdda58490659a0f924c95e4c325b8fd2fcecad0 Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Tue, 7 Feb 2017 17:57:55 +0200 Subject: fix error handeling Signed-off-by: Hanoh Haim --- scripts/dpdk_setup_ports.py | 2 +- scripts/t-rex-64 | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/dpdk_setup_ports.py b/scripts/dpdk_setup_ports.py index b49d4d94..34f2ef8a 100755 --- a/scripts/dpdk_setup_ports.py +++ b/scripts/dpdk_setup_ports.py @@ -1027,7 +1027,7 @@ def main (): elif map_driver.args.linux: obj.do_return_to_linux(); else: - exit(obj.do_run()) + exit(obj.do_run()); print('') except DpdkSetup as e: print(e) diff --git a/scripts/t-rex-64 b/scripts/t-rex-64 index 9ad96127..208f2029 100755 --- a/scripts/t-rex-64 +++ b/scripts/t-rex-64 @@ -9,7 +9,8 @@ EXTRA_INPUT_ARGS="" ./trex-cfg $INPUT_ARGS RESULT=$? -if [ $RESULT -lt 0 ]; then +if [ $RESULT -eq 255 ]; then + echo "ERROR encountered while configuring trex system" exit $RESULT fi -- cgit 1.2.3-korg