Title: [commits] (bear) [11377] modified how functional tests are run to always include --stderr
Revision
11377
Author
bear
Date
2006-08-10 11:56:46 -0700 (Thu, 10 Aug 2006)

Log Message

modified how functional tests are run to always include --stderr
previously the code was adding that flag only if running in debug mode but with
the changes made to Chandler for the new Feedback option it needs to be passed in always

Modified Paths

Diff

Modified: trunk/chandler/tools/do_tests.sh (11376 => 11377)

--- trunk/chandler/tools/do_tests.sh	2006-08-10 18:51:20 UTC (rev 11376)
+++ trunk/chandler/tools/do_tests.sh	2006-08-10 18:56:46 UTC (rev 11377)
@@ -16,6 +16,9 @@
 
 USAGE="Usage: `basename $0` -fpuN [-m debug|release] [-t test_name] [chandler-base-path]"
 
+# Signals to the Chandler code that it is being run from a unit test
+export UNIT_TESTING=True
+
 if [ "$CHANDLER_FUNCTIONAL_TEST" = "yes" ]; then
     RUN_FUNCTIONAL=yes
 else
@@ -327,16 +330,11 @@
             else
                 TESTNAME=$F_TEST_SUITE
             fi
-            if [ "$mode" = "debug" ]; then
-                STDERR_FLAG="--stderr"
-            else
-                STDERR_FLAG=""
-            fi
 
             echo Running $TESTNAME | tee -a $TESTLOG
 
             cd $C_DIR
-            $CHANDLERBIN/$mode/$RUN_CHANDLER --create $STDERR_FLAG --nocatch --profileDir="$PC_DIR" --parcelPath="$PP_DIR" --scriptTimeout=600 --scriptFile="$TESTNAME" &> $C_DIR/test.log
+            $CHANDLERBIN/$mode/$RUN_CHANDLER --create --stderr --nocatch --profileDir="$PC_DIR" --parcelPath="$PP_DIR" --scriptTimeout=600 --scriptFile="$TESTNAME" &> $C_DIR/test.log
 
               # scan the test output for the success messge "OK"
             RESULT=`grep '#TINDERBOX# Status = PASSED' $C_DIR/test.log`




_______________________________________________
Commits mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to