comparison to stable/grizzly is not numeric

the current d-g code uses -ne which is an explicitly numeric
opperator. Make this != to do the right thing with strings. Use variable
that is local to setup_localrc().
Without this there we get:

[[: stable/grizzly: division by 0 (error token is "grizzly")

Change-Id: Ie338b33e4bc655cb8e06b8bf80ab75bb58bf0e5e
This commit is contained in:
Sean Dague
2013-12-24 09:58:01 -05:00
committed by David Kranz
parent 9bb37850ca
commit 0c72ead2ea

View File

@@ -346,7 +346,7 @@ if [ "$DEVSTACK_GATE_TEMPEST" -eq "1" ]; then
res=$?
fi
if [[ "$LOCALRC_BRANCH" -ne "stable/grizzly" ]] && \
if [[ "$GRENADE_OLD_BRANCH" != "stable/grizzly" ]] && \
[[ "$DEVSTACK_GATE_TEMPEST_STRESS" -ne "1" ]] ; then
tools/check_logs.py -d $BASE/new/screen-logs
res2=$?