ci: Also test for HOME being writable

Actually it seems OpenShift sets HOME=/ for some reason; probably
related to the non-root uid default.

And whole lot of the Prow jobs do `export HOME=$(mktemp -d)` today.

I am tempted to add a `cosa entrypoint` command or something
that sanitizes the environment setup.
This commit is contained in:
Colin Walters 2021-02-03 19:49:57 +00:00 committed by OpenShift Merge Robot
parent 79f07957f5
commit fe342c30ed

View File

@ -2,7 +2,7 @@
# OpenShift Prow jobs don't set $HOME, but we need
# one for cargo right now.
if test -z "$HOME"; then
if test -z "$HOME" || test ! -w "$HOME"; then
export HOME=$(mktemp -d -t --suffix .prowhome)
fi