Skip to content

Commit

Permalink
make sure test_all will errexit
Browse files Browse the repository at this point in the history
previously using `tee` was preventing script from exiting on test
failure
  • Loading branch information
flavorjones committed Jun 6, 2016
1 parent 8d4ea86 commit a7da0f9
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions test_all
Original file line number Diff line number Diff line change
Expand Up @@ -76,32 +76,32 @@ for ruby in $RUBIES ; do
done

for ruby in $RUBIES ; do
rvm_use ${ruby}
echo -e "**\n** testing nokogiri on ${ruby}\n**"
clean
compile
echo "** running tests ..."
bundle exec rake test 2>&1
if [[ ! $ruby =~ "jruby" ]] ; then
echo "** running tests again with libxml-ruby loaded ..."
if ! gem list libxml-ruby | fgrep 2.8.0 ; then
gem install libxml-ruby
fi
bundle exec rake test:libxml-ruby 2>&1
fi
clean
done | tee -a $TEST_LOG

for ruby in $RUBIES ; do
if [[ ! $ruby =~ "jruby" ]] ; then
rvm_use ${ruby}
echo -e "**\n** testing nokogiri on ${ruby}\n**" | tee -a $TEST_LOG
echo -e "**\n** nokogiri prerelease: ${ruby}\n**"
clean
compile
echo "** running tests ..."
bundle exec rake test 2>&1 | tee -a $TEST_LOG
if [[ ! $ruby =~ "jruby" ]] ; then
echo "** running tests again with libxml-ruby loaded ..."
if ! gem list libxml-ruby | fgrep 2.8.0 ; then
gem install libxml-ruby
fi
bundle exec rake test:libxml-ruby 2>&1 | tee -a $TEST_LOG
fi
echo "** running valgrind on tests ..."
bundle exec rake test:valgrind 2>&1
echo "** running valgrind again with libxml-ruby loaded ..."
bundle exec rake test:valgrind:libxml-ruby 2>&1
clean
done

for ruby in $RUBIES ; do
if [[ ! $ruby =~ "jruby" ]] ; then
rvm_use ${ruby}
echo -e "**\n** nokogiri prerelease: ${ruby}\n**" | tee -a $VALGRIND_LOG
clean
compile
echo "** running valgrind on tests ..."
bundle exec rake test:valgrind 2>&1 | tee -a $VALGRIND_LOG
echo "** running valgrind again with libxml-ruby loaded ..."
bundle exec rake test:valgrind:libxml-ruby 2>&1 | tee -a $VALGRIND_LOG
clean
fi
done
fi
done | tee -a $VALGRIND_LOG

0 comments on commit a7da0f9

Please # to comment.