tasn pushed a commit to branch master.

commit 6d474175e2c791c1345bff8f40b290762811fbba
Author: Tom Hacohen <[email protected]>
Date:   Tue Apr 30 10:35:52 2013 +0100

    More clean-ups.
---
 src/scripts/exactness.in | 65 +++++++-----------------------------------------
 1 file changed, 9 insertions(+), 56 deletions(-)

diff --git a/src/scripts/exactness.in b/src/scripts/exactness.in
index fa37e5c..30ade97 100755
--- a/src/scripts/exactness.in
+++ b/src/scripts/exactness.in
@@ -442,31 +442,6 @@ DEBUG echo _test_file_name="$_test_file_name"
 DEBUG echo _base_dir="$_base_dir"
 DEBUG echo _dest_dir="$_dest_dir"
 
-
-if [ "$_simulation" ]
-then
-   # When in simulation mode, we will just commit play (ignore other options)
-   _init=
-   _record=
-   _compare=
-   _remove_fail=
-   _play=
-   while read curline;
-   do
-      name_in_args "$curline" $*
-      _run_test=$(( $? + $_test_all ))
-      if [ $_run_test -ne 0 ]
-      then
-         do_simulation "$curline"
-         if [ $? -ne 0 ]
-         then
-            (( _n_exe_err++ ))
-         fi
-      fi
-   done < "$_test_file_name"
-   # This will cause render simulation
-fi
-
 if [ ! -e "$_base_dir" ]
 then
    echo "Base dir <$_base_dir> - not found."
@@ -508,24 +483,16 @@ then
    fi
 fi
 
-# Here we clear all fail_*.txt files before running test
-# because those files are opened with append ("a") mode.
-# We don't want to accumlate old tests fail text.
-if [ "$_remove_fail" ]
+
+if [ "$_simulation" ]
 then
-   if [ -z "$*" ]
-   then
-      # Remove all file_*.txt files before init/play/record
-      DEBUG echo "removing fail_*.txt"
-      rm fail_*.txt &> /dev/null
-   else
-      # Remove file_*.txt files before init/play/record
-      for i in $*
-      do
-         DEBUG echo "removing fail_$i.txt"
-         rm fail_"$i".txt &> /dev/null
-      done
-   fi
+   # When in simulation mode, we will just commit play (ignore other options)
+   _init=
+   _record=
+   _compare=
+   _remove_fail=
+   _play=
+   for_test_in_test_file_do do_simulation
 fi
 
 if [ "$_record" ]
@@ -544,20 +511,6 @@ then
 fi
 
 _n_tests_failed=0
-if [ "$_remove_fail" ]
-then
-   ls fail_*.txt  &> /dev/null
-   if [ "$?" -eq 0 ]
-   then
-      _n_tests_failed=`ls fail_*.txt -1 | wc -l`
-
-      if [ "$_n_tests_failed" ]
-      then
-         echo "$_n_tests_failed tests had errors while running."
-         echo "Please examine fail_*.txt files in CWD"
-      fi
-   fi
-fi
 
 # Add up total-error and emit user message.
 total_errors=$(( $nfail + $nerr + $_n_tests_failed + $_n_exe_err ))

-- 

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1

Reply via email to