Permalink
Browse files

Print each command before running it.

This makes it easier to run one of them when we get a failure.
  • Loading branch information...
myronmarston committed Aug 25, 2012
1 parent ca57991 commit 3e3e64dfe8d7cc8ee449c295f4d0721cfdb9320a
Showing with 7 additions and 3 deletions.
  1. +7 −3 script/test_all
View
@@ -1,5 +1,10 @@
#!/bin/bash
+function print_and_run {
+ echo $1
+ ($1)
+}
+
set -e
echo "Bundling Standalone so we can run the specs w/o bundler loaded"
@@ -11,14 +16,13 @@ command_prefix="ruby -r./bundle/bundler/setup.rb -S $path_to_rspec_exe"
echo "Running all..."
-$command_prefix spec --format progress --profile
+print_and_run "$command_prefix spec --format progress --profile"
echo
echo "--------------------------------------------------------------------"
echo
for file in `find spec -iname '*_spec.rb'`; do
- echo "Running just $file"
- $command_prefix $file --format progress
+ print_and_run "$command_prefix $file --format progress"
done

0 comments on commit 3e3e64d

Please sign in to comment.