Fix bash syntax in test-bifrost script

Square brackets are redundant and can deal to wrong output.
Also the test can be simplified using -a and removing -n for the
same outcome.

Change-Id: I71a07193e44e7cee402a5c28b955d5da315200b6
This commit is contained in:
Riccardo Pittau 2020-01-14 11:30:20 +01:00
parent aace973db9
commit fdd5fbe2a1
1 changed files with 2 additions and 2 deletions

View File

@ -78,8 +78,8 @@ mysql_setup() {
CREATE DATABASE openstack_citest CHARACTER SET utf8;"
}
# Setup openstack_citest database if run in OpenStack CI.
if [ [ "$ZUUL_BRANCH" != "" ] && [ -n "$ZUUL_REF" ] ]; then
# Setup openstack_ci test database if run in OpenStack CI.
if [ "$ZUUL_BRANCH" != "" -a "$ZUUL_REF" ]; then
mysql_setup
fi