diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2021-11-18 13:00:39 +0100 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2021-12-23 16:02:09 +0100 |
commit | 654f6839ebe33d64710b5e7f3c388539e84f8e35 (patch) | |
tree | 96ece0bd8ed778665a890c3e54119f7d748784cc /share | |
parent | c8daa7218de7904151e61f2d9a1458e63b0e3363 (diff) | |
download | spack-654f6839ebe33d64710b5e7f3c388539e84f8e35.tar.gz spack-654f6839ebe33d64710b5e7f3c388539e84f8e35.tar.bz2 spack-654f6839ebe33d64710b5e7f3c388539e84f8e35.tar.xz spack-654f6839ebe33d64710b5e7f3c388539e84f8e35.zip |
ci: run style unit tests only if we target develop (#27472)
Some tests assume the base branch is develop, but this branch may not
have been checked out.
Diffstat (limited to 'share')
-rwxr-xr-x | share/spack/qa/run-style-tests | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/share/spack/qa/run-style-tests b/share/spack/qa/run-style-tests index 72c47ff055..9f0cbdb266 100755 --- a/share/spack/qa/run-style-tests +++ b/share/spack/qa/run-style-tests @@ -14,15 +14,15 @@ # Usage: # run-flake8-tests # -. "$(dirname $0)/setup.sh" +. "$(dirname "$0")/setup.sh" -BASE="" -if [ -n "$GITHUB_BASE_REF" ]; then - BASE="--base ${GITHUB_BASE_REF}" +args=() +if [[ -n $GITHUB_BASE_REF ]]; then + args+=("--base" "${GITHUB_BASE_REF}") fi # verify that the code style is correct -spack style --root-relative $BASE +spack style --root-relative "${args[@]}" # verify that the license headers are present spack license verify |