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
This commit is contained in:
parent
6c05d5b037
commit
dd9582ff9b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user