From 4df36f9f06132a926a211590c8e546a5086961d9 Mon Sep 17 00:00:00 2001 From: Robin Houston Date: Tue, 31 Jan 2012 08:58:48 +0000 Subject: fix shell syntax in script --- script/spec-all-pairs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'script/spec-all-pairs') diff --git a/script/spec-all-pairs b/script/spec-all-pairs index 338f56147..25ca4c32a 100755 --- a/script/spec-all-pairs +++ b/script/spec-all-pairs @@ -40,8 +40,8 @@ pairs_from_stdin() { while read line do case "$line" in - \*\ FAILED:\ *) - spec/*.rb spec/$.rb) + \*\ FAILED:\ *|\ + spec/*.rb\ spec/$.rb) line=${line#\* FAILED: } if ! test_pair $line then -- cgit v1.2.3 From 51670cc1cdb08c3da46670d42b29a6a4b4014d26 Mon Sep 17 00:00:00 2001 From: Robin Houston Date: Tue, 31 Jan 2012 17:39:15 +0000 Subject: Use db:test:prepare to prepare the way for tests --- script/spec-all-pairs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'script/spec-all-pairs') diff --git a/script/spec-all-pairs b/script/spec-all-pairs index 25ca4c32a..e5a6dc1cb 100755 --- a/script/spec-all-pairs +++ b/script/spec-all-pairs @@ -4,8 +4,7 @@ # to winkle out order-dependent failures. test_pair () { - rake db:test:purge > /dev/null - rake db:test:clone_structure > /dev/null + rake db:test:prepare > /dev/null if script/spec "$1" "$2" > /dev/null 2>&1 then echo "OK: $1 $2" -- cgit v1.2.3 From a3dc416767b093af851ca0bece3daaf783c3c9e0 Mon Sep 17 00:00:00 2001 From: Robin Houston Date: Tue, 31 Jan 2012 17:52:22 +0000 Subject: Suppress stderr output from rake db:test:prepare --- script/spec-all-pairs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/spec-all-pairs') diff --git a/script/spec-all-pairs b/script/spec-all-pairs index e5a6dc1cb..31cb7a36b 100755 --- a/script/spec-all-pairs +++ b/script/spec-all-pairs @@ -4,7 +4,7 @@ # to winkle out order-dependent failures. test_pair () { - rake db:test:prepare > /dev/null + rake db:test:prepare > /dev/null 2>&1 if script/spec "$1" "$2" > /dev/null 2>&1 then echo "OK: $1 $2" -- cgit v1.2.3 From 16f4b2da24d744dc7ed14199a220bf44b11fbcc9 Mon Sep 17 00:00:00 2001 From: Robin Houston Date: Wed, 1 Feb 2012 00:29:20 +0000 Subject: typo --- script/spec-all-pairs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/spec-all-pairs') diff --git a/script/spec-all-pairs b/script/spec-all-pairs index 31cb7a36b..e8fa77be9 100755 --- a/script/spec-all-pairs +++ b/script/spec-all-pairs @@ -40,7 +40,7 @@ pairs_from_stdin() { do case "$line" in \*\ FAILED:\ *|\ - spec/*.rb\ spec/$.rb) + spec/*.rb\ spec/*.rb) line=${line#\* FAILED: } if ! test_pair $line then -- cgit v1.2.3