Optimize
authorEduardo Ramos Testillano <eduardo.ramos.testillano@ericsson.com>
Mon, 23 Nov 2015 16:27:36 +0000 (17:27 +0100)
committerEduardo Ramos Testillano <eduardo.ramos.testillano@ericsson.com>
Mon, 23 Nov 2015 16:27:36 +0000 (17:27 +0100)
example/diameter/launcher/deployments/st-client/program.sh
example/diameter/launcher/resources/scripts/clone.sh

index f3aa539..b02fd2d 100755 (executable)
@@ -60,9 +60,9 @@ TESTCASE=( `ls $TESTCASE_DIR/testcase*msk 2>/dev/null` )
 TESTCASE_FILES=${#TESTCASE[@]}
 [ $TESTCASE_FILES -ne 1 ] && _exit "One and only one 'testcase*msk' file must be present !!"
 
-#MAX_NUMBER_GROUPS=$(grep ^MAX_NUMBER_GROUPS= clone.sh | cut -d= -f2)
-#CLONE_GROUPS=$((MAX_NUMBER_GROUPS/ADML_INSTANCES))
-CLONE_GROUPS=1
+MAX_NUMBER_GROUPS=$(grep ^MAX_NUMBER_GROUPS= clone.sh | cut -d= -f2)
+CLONE_GROUPS=$((MAX_NUMBER_GROUPS/ADML_INSTANCES))
+#CLONE_GROUPS=1
 
 children_before=$(children)
 while read -r line
index ad89977..d392097 100755 (executable)
@@ -4,7 +4,8 @@
 # VARIABLES #
 #############
 CLONE_WKDIR=$(mktemp -d)
-MAX_NUMBER_GROUPS=400
+#MAX_NUMBER_GROUPS=400
+MAX_NUMBER_GROUPS=200
 # (depends on the machine)
 
 #############
@@ -16,7 +17,8 @@ _exit (){
   echo
 
   # Background jobs:
-  kill -9 $(jobs -p) >/dev/null 2>/dev/null
+  #remaining_jobs=$(jobs -p)
+  (kill -9 $(jobs -p) 2>&1) >/dev/null
 
   # Cleanup:
   rm -rf $CLONE_WKDIR