From ee2abcbfc960ad951f28fe5d1900c28e2fcf9e8d Mon Sep 17 00:00:00 2001 From: Theo Chatzimichos Date: Jan 21 2018 23:58:52 +0000 Subject: bin/run_tests_locally.sh: change order of commands to avoid sudo create the /srv/{salt/pillar} symlinks before putting symlinks of the formulas inside them --- diff --git a/bin/run_tests_locally.sh b/bin/run_tests_locally.sh index 76eebd9..8b80b78 100755 --- a/bin/run_tests_locally.sh +++ b/bin/run_tests_locally.sh @@ -30,12 +30,12 @@ SALT_DIRS=( ) # Prepare env -bin/get_formulas.py --destination $DESTINATION --clone --symlink --use-pygit2 --update opensuse \ - --add-remote opensuse no_prefix gitlab@gitlab.infra.opensuse.org: saltstack-formulas for dir in ${SALT_DIRS[@]}; do sudo chown -R ${USER}: $dir done bin/prepare_test_highstate_env.sh +bin/get_formulas.py --destination $DESTINATION --clone --symlink --use-pygit2 --update opensuse \ + --add-remote opensuse no_prefix gitlab@gitlab.infra.opensuse.org: saltstack-formulas echo "virtual: kvm" >> /etc/salt/grains ln -s ~/.gnupg /etc/salt/gpgkeys