flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [3/6] git commit: [flex-sdk] [refs/heads/develop] - modify scripts to output email if needed
Date Fri, 24 May 2013 22:33:51 GMT
modify scripts to output email if needed


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/611ddebf
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/611ddebf
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/611ddebf

Branch: refs/heads/develop
Commit: 611ddebf71fddfdc47443a20dfa1efc7ca6d9d2e
Parents: f02bc3e
Author: Alex Harui <aharui@apache.org>
Authored: Fri May 24 23:16:27 2013 +0100
Committer: Alex Harui <aharui@apache.org>
Committed: Fri May 24 23:27:27 2013 +0100

----------------------------------------------------------------------
 mustella/test_changes.sh |   23 +++++++++++++++++++----
 test_patch.sh            |    9 +++++++--
 2 files changed, 26 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/611ddebf/mustella/test_changes.sh
----------------------------------------------------------------------
diff --git a/mustella/test_changes.sh b/mustella/test_changes.sh
index 1e20877..92f9081 100755
--- a/mustella/test_changes.sh
+++ b/mustella/test_changes.sh
@@ -31,15 +31,30 @@ then
 sh ./mini_run.sh -failures
 fi
 else
-	echo "no changes.txt or nothing in it"
+        if [ $# -lt 1 ]
+        then
+    	    echo "no changes.txt or nothing in it"
+        else
+            mutt -s "No Tests Found" $1 <$2
+        fi
 	exit
 fi
 if [ -s failures.txt ]
 then
     numlines=`wc -l failures.txt | awk {'print $1'}`
-    echo "$numlines tests failed"
+    if [ $# -lt 1 ]
+    then
+        echo "$numlines tests failed"
+    else
+        mutt -s "$numlines tests failed" $1 <failures.txt
+    fi
 else
     numlines=`wc -l results.txt | awk {'print $1'}`
 	let "numlines = $numlines - 19"
-    echo "$numlines tests passed"
-fi
\ No newline at end of file
+    if [ $# -lt 1 ]
+    then
+        echo "$numlines tests passed"
+    else
+         mutt -s "$numlines tests passed" $1 <$2
+    fi
+fi

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/611ddebf/test_patch.sh
----------------------------------------------------------------------
diff --git a/test_patch.sh b/test_patch.sh
index d591d84..fca3634 100755
--- a/test_patch.sh
+++ b/test_patch.sh
@@ -30,7 +30,7 @@ fi
 git apply $1
 git status >gitstatus.txt
 cd mustella/utilities/MustellaTestChooser/src
-"$AIR_HOME/bin/adl" -runtime "$AIR_HOME/runtimes/air/mac" MustellaTestChooser-app.xml --
-file
+"$AIR_HOME/bin/adl" -runtime "$AIR_HOME/runtimes/air/win" MustellaTestChooser-app.xml --
-file
 cd ../../../..
 if [ -s mustella/changes.txt ]
 then
@@ -40,7 +40,12 @@ then
 		exit $rc
 	fi
 	cd mustella
-	sh ./test_changes.sh
+        if [ $# -lt 2 ]
+        then
+	    sh ./test_changes.sh
+        else
+            sh ./test_changes.sh $2 $1
+        fi
 	cd ..
 fi
 git checkout .


Mime
View raw message