ruby: Run tests one at a time, instead of in parallel.
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 21 Oct 2010 15:39:04 +0000 (16:39 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 23 Oct 2010 12:14:38 +0000 (13:14 +0100)
(cherry picked from commit 8f30c3c3f8c063f7c5ff8c6154d881e07a820251)

ruby/run-ruby-tests

index 6bf898b..643bff9 100755 (executable)
 
 set -e
 
-rake test "$@"
+# Run them one at a time, otherwise rake runs them in parallel (which
+# is bound to fail because they all use a single test image file).
+
+for f in tests/tc_*.rb; do
+    echo rake test "$@" TEST="$f"
+    rake test "$@" TEST="$f"
+done