Skip to content

Commit

Permalink
Tweaks to spec-all-pairs
Browse files Browse the repository at this point in the history
1. Suppress irrelevant output;
2. Check that running the same spec twice doesn’t cause failures either.
  • Loading branch information
robinhouston committed Jan 22, 2012
1 parent f0de137 commit 6e7aed1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions script/spec-all-pairs
Expand Up @@ -10,14 +10,11 @@ do
seen=false
for spec2 in $specs
do
if [ "$spec1" != "$spec2" ]
rake db:test:purge > /dev/null
rake db:test:clone_structure > /dev/null
if ! ( script/spec "$spec1" "$spec2" ) > /dev/null
then
rake db:test:purge
rake db:test:clone_structure
if ! ( script/spec "$spec1" "$spec2" ) > /dev/null
then
echo "FAILED: $spec1 $spec2"
fi
echo "FAILED: $spec1 $spec2"
fi
done
done

0 comments on commit 6e7aed1

Please sign in to comment.