Fixed run_scenario to create matrix files only then there are up-down log files;...
authorGeorge Milescu <george.milescu@gmail.com>
Mon, 16 Aug 2010 15:17:38 +0000 (17:17 +0200)
committerGeorge Milescu <george.milescu@gmail.com>
Mon, 16 Aug 2010 15:17:38 +0000 (17:17 +0200)
Signed-off-by: George Milescu <george.milescu@gmail.com>
ControlScripts/run_scenario.sh
Utils/show_version.sh

index 3aa9467..7c204e9 100755 (executable)
@@ -257,12 +257,14 @@ scenario_parse() {
        done < $TMP_FILE
        unset IFS
 
-       echo " ** Parsing peer-conection up/down files"
-       if ! ./parse_up_down_log.sh $SCENARIO_RESULTS_FOLDER; then
-               echo "Error parsing updown files in $SCENARIO_RESULTS_FOLDER"
-               exit 1
+       if ls -lR | grep "\.updown" &> /dev/null; then
+               # There are .updown log files
+               echo " *** Parsing peer-conection up/down files"
+               if ! ./parse_up_down_log.sh $SCENARIO_RESULTS_FOLDER; then
+                       echo "Error parsing updown files in $SCENARIO_RESULTS_FOLDER"
+                       exit 1
+               fi
        fi
-
        echo "---------------------- _scenario_parse" >> $ERR_LOG
 }
 
index 50bce15..cb8bebf 100755 (executable)
@@ -19,4 +19,4 @@ export PYTHONPATH=$PYTHONPATH:.
 
 cd $TRIBLER_UTIL_REL_PATH
 
-python Tribler/Tools/cmdlinedl.py -v
+python2.6 Tribler/Tools/cmdlinedl.py -v