Add a check to see if the user has updated the browbeat.cfg before

running.

This will help users avoid running browbeat without really meaning to.

Change-Id: I29cecb7eefd1e41523e8f50ffbbf16b4c68e76bf
This commit is contained in:
Joe Talerico 2015-12-15 11:45:09 -05:00
parent b53b5a2e0e
commit 03d29531ff
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,7 @@
# Block run if we haven't updated the config
UPDATED=false
DEBUG=true DEBUG=true
CONNMON=true CONNMON=true
# Number of workers to test. This is a loop. # Number of workers to test. This is a loop.

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
source ~/stackrc source ~/stackrc
source browbeat-config source browbeat.cfg
log() log()
{ {
@ -197,6 +198,11 @@ truncate_token_bloat()
ssh -o "${SSH_OPTS}" ${LOGIN_USER}@$IP sudo "mysql keystone -e 'truncate token;'" ssh -o "${SSH_OPTS}" ${LOGIN_USER}@$IP sudo "mysql keystone -e 'truncate token;'"
} }
if [ "$UPDATED" = false ]; then
log "Usage: ./browbeat.sh <test_prefix>"
log "Please update the browbeat.cfg before running"
exit
fi
if [ ! $# == 1 ]; then if [ ! $# == 1 ]; then
log "Usage: ./browbeat.sh <test_prefix>" log "Usage: ./browbeat.sh <test_prefix>"