Silence absurdly verbose pup-odl rvm output 04/57404/1
authorDaniel Farrell <dfarrell@redhat.com>
Fri, 19 May 2017 08:22:15 +0000 (04:22 -0400)
committerDaniel Farrell <dfarrell@redhat.com>
Fri, 19 May 2017 08:22:15 +0000 (04:22 -0400)
Log was massive and hard to read due to useless pollution.

Change-Id: I17b05b250aec776f0ea29f3a9f55049cedc282e6
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
jjb/packaging/include-raw-test-puppet.sh

index cd063e2e620eded47156d88967b08960dcfee7ee..22b151176cf080fbe0e1c90d5ed2424acdbb12f3 100644 (file)
@@ -18,9 +18,12 @@ sudo yum install -y ruby-devel gcc-c++ zlib-devel patch redhat-rpm-config make r
 gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
 curl -L get.rvm.io | bash -s stable
 # Expected by RVM, seems required to make RVM functions (`rvm use`) available
+# Silence absurdly verbose rvm output by temporally not echoing commands
+set +x
 # shellcheck disable=SC1090
 source "$HOME/.rvm/scripts/rvm"
 rvm install 2.4.0
+set -x
 ruby --version
 # This has to be done as a login shell to get rvm fns
 # https://rvm.io/support/faq#what-shell-login-means-bash-l
@@ -31,7 +34,10 @@ ruby --version
 # Install gems dependencies of puppet-opendaylight via Bundler
 gem install bundler
 echo export PATH="\\$PATH:/usr/local/bin" >> "$HOME/.bashrc"
+# RVM's loaded functions print lots of output at this step, silence them
+set +x
 pushd "$WORKSPACE/puppet"
+set -x
 bundle install
 bundle update