You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@joshua.apache.org by mj...@apache.org on 2016/04/20 02:51:34 UTC

incubator-joshua git commit: conveniences for running tests

Repository: incubator-joshua
Updated Branches:
  refs/heads/master d677bcddb -> a1215a667


conveniences for running tests


Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/a1215a66
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/a1215a66
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/a1215a66

Branch: refs/heads/master
Commit: a1215a667dc7b832a8272cd649705ef14e0ee3ba
Parents: d677bcd
Author: Matt Post <po...@cs.jhu.edu>
Authored: Tue Apr 19 20:51:27 2016 -0400
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Tue Apr 19 20:51:27 2016 -0400

----------------------------------------------------------------------
 test/run-all-tests.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/a1215a66/test/run-all-tests.sh
----------------------------------------------------------------------
diff --git a/test/run-all-tests.sh b/test/run-all-tests.sh
index 16ff601..2b260d3 100755
--- a/test/run-all-tests.sh
+++ b/test/run-all-tests.sh
@@ -7,6 +7,8 @@
 # Important!  Do not rename this script to match the pattern test*.sh, or it will execute
 # recursively.
 
+trap exit INT
+
 GREEN='\033[01;32m'
 RED='\033[01;31;31m'
 NONE='\033[00m'
@@ -20,7 +22,7 @@ for file in $tests; do
   if [[ ! -x $file ]]; then
     continue;
   fi
-  dir=$(dirname $file)
+  dir=$(dirname $file | sed 's/^\.\///')
   name=$(basename $file)
   echo -n "Running test '$name' in test/$dir..."
   pushd $dir > /dev/null