tests.installer: Load profile with -o unset

Tested with an ubuntu case. Might need revision depending on what hydra
thinks of the rest.
This commit is contained in:
Robert Hensing 2024-08-19 16:41:40 +02:00
parent 30af4a9e27
commit 2f0db04da0

View File

@ -217,10 +217,16 @@ let
$ssh <<EOF $ssh <<EOF
set -ex set -ex
# enable nounset while loading the profile
# this may or may not work on all distros, depending on the quality of their scripts
set -u
# FIXME: get rid of this; ideally ssh should just work. # FIXME: get rid of this; ideally ssh should just work.
source ~/.bash_profile || true source ~/.bash_profile || true
source ~/.bash_login || true source ~/.bash_login || true
source ~/.profile || true source ~/.profile || true
set +u
source /etc/bashrc || true source /etc/bashrc || true
nix-env --version nix-env --version