From dd9582ff9bcd9de2f22e9a09eb4d48530160f8ca Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Fri, 18 Aug 2017 11:02:19 -0700 Subject: [PATCH] run_tests: cp gemrc in /root If .gemrc exists, make sure it's copied on /root, so we can use it when deploying gems + modules as root in the scripts. Change-Id: I8ff30d9cb147cf48fae74bf1963e2869f48875de --- run_tests.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/run_tests.sh b/run_tests.sh index 3cf79dbe7..a6076ac83 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -107,6 +107,12 @@ if [ "${ADD_SWAP}" = true ]; then $SUDO swapon /swapfile fi +# We install some gems as root so to take benefit of +# OpenStack Infra mirrors. +if [ -f ~/.gemrc ]; then + cat ~/.gemrc | $SUDO tee /root/.gemrc +fi + print_header 'Clone Tempest, plugins & pre-cache CirrOS' # TODO(pabelanger): Move this into tools/install_tempest.sh and add logic so we # can clone tempest outside of the gate. Also, tempest should be sandboxed into