diff options
author | 2017-02-07 17:57:55 +0200 | |
---|---|---|
committer | 2017-02-13 12:32:26 +0200 | |
commit | 2fdda58490659a0f924c95e4c325b8fd2fcecad0 (patch) | |
tree | 7e99059a13cf5aa5ba5d8c9aafe6fe2d92bce681 | |
parent | 4ace51417b423c2ca784a96db3d410aa1f4904f8 (diff) |
fix error handeling
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
-rwxr-xr-x | scripts/dpdk_setup_ports.py | 2 | ||||
-rwxr-xr-x | 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 |