aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-01-23 22:24:22 +0000
committerRobin Houston <robin.houston@gmail.com>2012-01-23 22:24:22 +0000
commitd695b97e5580c5fbe1e68d3d02b9d475a6470ced (patch)
tree08e882d888a66c2322b09b7ecf3c3c3c7c7cc9bb
parentb4733e8526a9d611a260a3c79948adc916bb380c (diff)
Print successes as well as failures
As a larger proportion of these tests start to pass, it becomes helpful to print information about successes as well as failures.
-rwxr-xr-xscript/spec-all-pairs9
1 files changed, 7 insertions, 2 deletions
diff --git a/script/spec-all-pairs b/script/spec-all-pairs
index 0d83f5837..d1b6c87ea 100755
--- a/script/spec-all-pairs
+++ b/script/spec-all-pairs
@@ -7,14 +7,19 @@ specs=spec/*/*.rb
for spec1 in $specs
do
- seen=false
+ all_okay=true
for spec2 in $specs
do
rake db:test:purge > /dev/null
rake db:test:clone_structure > /dev/null
- if ! ( script/spec "$spec1" "$spec2" ) > /dev/null 2>&1
+ if script/spec "$spec1" "$spec2" > /dev/null 2>&1
then
+ echo "OK: $spec1 $spec2"
+ else
echo "FAILED: $spec1 $spec2"
+ all_okay=false
fi
done
done
+
+exec $all_okay