mirror of
https://github.com/goharbor/harbor
synced 2025-05-10 20:16:49 +00:00
Add elif to if condition to make if condition as one sentence, so return code is accurate for each sentence. (#6291)
Remove a space. Signed-off-by: danfengliu <danfengl@vmware.com>
This commit is contained in:
parent
bbee74eba4
commit
9a46d6b3ac
@ -29,15 +29,13 @@ docker ps
|
|||||||
# run db auth api cases
|
# run db auth api cases
|
||||||
if [ "$1" = 'DB' ]; then
|
if [ "$1" = 'DB' ]; then
|
||||||
pybot -v ip:$2 -v HARBOR_PASSWORD:Harbor12345 /home/travis/gopath/src/github.com/goharbor/harbor/tests/robot-cases/Group0-BAT/API_DB.robot
|
pybot -v ip:$2 -v HARBOR_PASSWORD:Harbor12345 /home/travis/gopath/src/github.com/goharbor/harbor/tests/robot-cases/Group0-BAT/API_DB.robot
|
||||||
fi
|
elif [ "$1" = 'LDAP' ]; then
|
||||||
# run ldap api cases
|
# run ldap api cases
|
||||||
if [ "$1" = 'LDAP' ]; then
|
|
||||||
pybot -v ip:$2 -v HARBOR_PASSWORD:Harbor12345 /home/travis/gopath/src/github.com/goharbor/harbor/tests/robot-cases/Group0-BAT/API_LDAP.robot
|
pybot -v ip:$2 -v HARBOR_PASSWORD:Harbor12345 /home/travis/gopath/src/github.com/goharbor/harbor/tests/robot-cases/Group0-BAT/API_LDAP.robot
|
||||||
|
else
|
||||||
|
rc=999
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rc=$?
|
rc=$?
|
||||||
echo $rc
|
|
||||||
|
|
||||||
## --------------------------------------------- Upload Harbor CI Logs -------------------------------------------
|
## --------------------------------------------- Upload Harbor CI Logs -------------------------------------------
|
||||||
timestamp=$(date +%s)
|
timestamp=$(date +%s)
|
||||||
outfile="integration_logs_$timestamp$TRAVIS_COMMIT.tar.gz"
|
outfile="integration_logs_$timestamp$TRAVIS_COMMIT.tar.gz"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user