From d695b97e5580c5fbe1e68d3d02b9d475a6470ced Mon Sep 17 00:00:00 2001 From: Robin Houston Date: Mon, 23 Jan 2012 22:24:22 +0000 Subject: 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. --- script/spec-all-pairs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'script/spec-all-pairs') 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 -- cgit v1.2.3