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:
parent
aace973db9
commit
fdd5fbe2a1
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue