[Commits] Rev 61: Using the new created result dir makes some sense. in file:///Users/hakan/work/monty_program/mariadb-tools/

Hakan Kuecuekyilmaz hakan.kuecuekyilmaz at t-online.de
Tue Nov 2 12:58:50 EET 2010


At file:///Users/hakan/work/monty_program/mariadb-tools/

------------------------------------------------------------
revno: 61
revision-id: hakan at askmonty.org-20101102105850-684i4acm010hlamr
parent: hakan at askmonty.org-20101102012233-u4l3s56mgxt9zhto
committer: Hakan Kuecuekyilmaz <hakan at askmonty.org>
branch nick: mariadb-tools
timestamp: Tue 2010-11-02 11:58:50 +0100
message:
  Using the new created result dir makes some sense.
-------------- next part --------------
=== modified file 'sysbench/run-sysbench-myisam.sh'
--- a/sysbench/run-sysbench-myisam.sh	2010-11-01 18:43:28 +0000
+++ b/sysbench/run-sysbench-myisam.sh	2010-11-02 10:58:50 +0000
@@ -300,7 +300,7 @@
     # Get rid of any options of given SysBench test.
     SYSBENCH_TEST=$(echo "${SYSBENCH_TESTS[$i]}" | awk '{ print $1 }')
     # If we run the same SysBench test with different options,
-    # then we have to care not to overwrite our previous results.
+    # then we have to take care not to overwrite our previous results.
     m=0
     DIR_CREATED=-1
     MKDIR_RETRY=512
@@ -308,11 +308,13 @@
     
     if [ ! -d $DIR_TO_CREATE ]; then
         mkdir $DIR_TO_CREATE
+        CURRENT_RESULT_DIR="$DIR_TO_CREATE"
     else 
         while [ $m -le $MKDIR_RETRY ]
             do
-            if [ ! -d ${DIR_TO_CREATE}-${l} ]; then
-                mkdir ${DIR_TO_CREATE}-${l}
+            if [ ! -d ${DIR_TO_CREATE}-${m} ]; then
+                mkdir ${DIR_TO_CREATE}-${m}
+                CURRENT_RESULT_DIR="${DIR_TO_CREATE}-${m}"
                 DIR_CREATED=1
                 
                 break
@@ -354,7 +356,7 @@
 
     for THREADS in $NUM_THREADS
         do
-        THIS_RESULT_DIR="${RESULT_DIR}/${TODAY}/${PRODUCT}/${SYSBENCH_TEST}/${THREADS}"
+        THIS_RESULT_DIR="${CURRENT_RESULT_DIR}/${THREADS}"
         mkdir $THIS_RESULT_DIR
         echo "[$(date "+%Y-%m-%d %H:%M:%S")] Running ${SYSBENCH_TESTS[$i]} with $THREADS threads and $LOOP_COUNT iterations for $PRODUCT" | tee ${THIS_RESULT_DIR}/results.txt
         echo '' >> ${THIS_RESULT_DIR}/results.txt

=== modified file 'sysbench/run-sysbench.sh'
--- a/sysbench/run-sysbench.sh	2010-11-01 18:43:28 +0000
+++ b/sysbench/run-sysbench.sh	2010-11-02 10:58:50 +0000
@@ -291,6 +291,7 @@
     do
     # Get rid of any options of given SysBench test.
     SYSBENCH_TEST=$(echo "${SYSBENCH_TESTS[$i]}" | awk '{ print $1 }')
+
     # If we run the same SysBench test with different options,
     # then we have to care not to overwrite our previous results.
     m=0
@@ -300,11 +301,13 @@
     
     if [ ! -d $DIR_TO_CREATE ]; then
         mkdir $DIR_TO_CREATE
+        CURRENT_RESULT_DIR="$DIR_TO_CREATE"
     else 
         while [ $m -le $MKDIR_RETRY ]
             do
-            if [ ! -d ${DIR_TO_CREATE}-${l} ]; then
-                mkdir ${DIR_TO_CREATE}-${l}
+            if [ ! -d ${DIR_TO_CREATE}-${m} ]; then
+                mkdir ${DIR_TO_CREATE}-${m}
+                CURRENT_RESULT_DIR="${DIR_TO_CREATE}-${m}"
                 DIR_CREATED=1
                 
                 break
@@ -346,7 +349,7 @@
 
     for THREADS in $NUM_THREADS
         do
-        THIS_RESULT_DIR="${RESULT_DIR}/${TODAY}/${PRODUCT}/${SYSBENCH_TEST}/${THREADS}"
+        THIS_RESULT_DIR="${CURRENT_RESULT_DIR}/${THREADS}"
         mkdir $THIS_RESULT_DIR
         echo "[$(date "+%Y-%m-%d %H:%M:%S")] Running ${SYSBENCH_TESTS[$i]} with $THREADS threads and $LOOP_COUNT iterations for $PRODUCT" | tee ${THIS_RESULT_DIR}/results.txt
         echo '' >> ${THIS_RESULT_DIR}/results.txt



More information about the commits mailing list