travis/gitlab/azure: Use bash to avoid a_test_which_does_not_exist
authorSimon Glass <sjg@chromium.org>
Wed, 18 Mar 2020 15:42:56 +0000 (09:42 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 11 Apr 2020 01:32:53 +0000 (21:32 -0400)
commit4080d0970d2cfe04562cc84afb47c5b33811700e
tree3b771a89ba44b3e6ca7020cd60ee64e04270c8a6
parent4e32fed4d3e068d6dc859c2aec86b8487646e805
travis/gitlab/azure: Use bash to avoid a_test_which_does_not_exist

Bash allows for variables to expand only if non-empty:

$ var=test
$ echo ${var:+"$var"}
test
$ echo ${var:+"-k $var"}
-k test
$ var=
$ echo ${var:+"-k $var"}

Use this feature to avoid the workaround.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
.azure-pipelines.yml
.gitlab-ci.yml
.travis.yml