16314: Fix bundle install recipe.
authorTom Clegg <tom@tomclegg.ca>
Tue, 25 Aug 2020 15:16:47 +0000 (11:16 -0400)
committerTom Clegg <tom@tomclegg.ca>
Tue, 25 Aug 2020 15:16:47 +0000 (11:16 -0400)
Previous code used incorrect bin path when GEM_HOME was set by caller,
e.g., arvbox.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@tomclegg.ca>

build/run-tests.sh

index c926fe87a17f0a740e2913e63d5464c12f6554f9..6d73450958d99572da10762e03272ffc743c9400 100755 (executable)
@@ -549,7 +549,7 @@ setup_ruby_environment() {
         echo "Will install dependencies to $(gem env gemdir)"
         echo "Will install arvados gems to $tmpdir_gem_home"
         echo "Gem search path is GEM_PATH=$GEM_PATH"
-        bundle="$(gem env gempath | cut -f1 -d:)/bin/bundle"
+        bundle="$(gem env gemdir)/bin/bundle"
         (
             export HOME=$GEMHOME
             bundlers="$(gem list --details bundler)"