You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2013/05/21 20:25:19 UTC

[12/12] git commit: [flex-sdk] [refs/heads/develop] - script to run mustella a second time if there are failures

script to run mustella a second time if there are failures


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

Branch: refs/heads/develop
Commit: 945f90e58f31009218095b1af3285e200647e2e5
Parents: 090f81b
Author: Alex Harui <ah...@apache.org>
Authored: Mon May 20 21:53:29 2013 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue May 21 11:24:51 2013 -0700

----------------------------------------------------------------------
 mustella/test_changes.sh |   45 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 45 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/945f90e5/mustella/test_changes.sh
----------------------------------------------------------------------
diff --git a/mustella/test_changes.sh b/mustella/test_changes.sh
new file mode 100755
index 0000000..1e20877
--- /dev/null
+++ b/mustella/test_changes.sh
@@ -0,0 +1,45 @@
+#!/bin/bash
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+##
+## test_changes.sh - runs mini_run.sh -changes and runs mini_run-failures if
+## there are failures
+##
+
+numlines=0
+if [ -s changes.txt ]
+then
+sh ./mini_run.sh -changes
+if [ -s failures.txt ]
+then
+sh ./mini_run.sh -failures
+fi
+else
+	echo "no changes.txt or nothing in it"
+	exit
+fi
+if [ -s failures.txt ]
+then
+    numlines=`wc -l failures.txt | awk {'print $1'}`
+    echo "$numlines tests failed"
+else
+    numlines=`wc -l results.txt | awk {'print $1'}`
+	let "numlines = $numlines - 19"
+    echo "$numlines tests passed"
+fi
\ No newline at end of file