diff options
author | Andrei Pavel <andrei@isc.org> | 2021-02-01 14:14:16 +0100 |
---|---|---|
committer | Andrei Pavel <andrei@isc.org> | 2021-07-01 20:37:47 +0200 |
commit | 918479fc2c27c4c71ea46e2353e6c1dda69e071b (patch) | |
tree | 670b80259d30d0235e469e428faa6d4bd6d78d88 /.gitlab-ci.yml | |
parent | [#1885] hammer: added support for building kea with gss-api (diff) | |
download | kea-918479fc2c27c4c71ea46e2353e6c1dda69e071b.tar.xz kea-918479fc2c27c4c71ea46e2353e6c1dda69e071b.zip |
[#1692] Gitlab CI: fix "test: too many arguments"
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a7359ccbaa..6092b176d1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -142,6 +142,8 @@ missing-git-attribute: - linux - amd64 script: - - test -z $(git diff) + - git_diff=$(git diff) + - if test -n "${git_diff}"; then printf '%s\n\ngit diff should be empty here under all circumstances. CI broken?\n' "${git_diff}"; exit 1; fi - ./tools/print-generated-files.sh -a - - test -z $(git diff) + - git_diff=$(git diff) + - if test -n "${git_diff}"; then printf '%s\n\n.gitattributes are missing a generated file. Please run "./tools/print-generated-files.sh -a" and commit the resulting change to fix them.\n' "${git_diff}"; exit 1; fi |