diff --git a/build_all b/build_all index 61586434f7..051b6b8d58 100755 --- a/build_all +++ b/build_all @@ -15,11 +15,6 @@ else echo "ERROR: An RVM installation was not found.\n" fi -if grep libxml-ruby Gemfile ; then - echo "ERROR: please remove the libxml-ruby line from your Gemfile" - exit 1 -fi - set -o errexit set -x diff --git a/test_all b/test_all index 6842bcbaa1..5e11cd586a 100755 --- a/test_all +++ b/test_all @@ -25,13 +25,12 @@ RUBIES="\ TEST_LOG=test.log VALGRIND_LOG=valgrind.log -if ! grep libxml-ruby Gemfile ; then - echo "ERROR: please add this line your Gemfile temporarily so we can run libxml-ruby tests:" - echo - echo "gem 'libxml-ruby', :platform => :mri" - echo - exit 1 -fi +# make sure we can test with libxml-ruby installed +export BUNDLE_GEMFILE="$(pwd)/Gemfile_test_all" +cat > $BUNDLE_GEMFILE < :mri +eval_gemfile File.join(File.dirname(ENV['BUNDLE_GEMFILE']),"Gemfile") +EOF # Load RVM into a shell session *as a function* if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then