fix error handeling
authorHanoh Haim <[email protected]>
Tue, 7 Feb 2017 15:57:55 +0000 (17:57 +0200)
committerIdo Barnea <[email protected]>
Mon, 13 Feb 2017 10:32:26 +0000 (12:32 +0200)
Signed-off-by: Hanoh Haim <[email protected]>
scripts/dpdk_setup_ports.py
scripts/t-rex-64

index b49d4d9..34f2ef8 100755 (executable)
@@ -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)
index 9ad9612..208f202 100755 (executable)
@@ -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