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:
parent
b53b5a2e0e
commit
03d29531ff
@ -1,3 +1,7 @@
|
||||
|
||||
# Block run if we haven't updated the config
|
||||
UPDATED=false
|
||||
|
||||
DEBUG=true
|
||||
CONNMON=true
|
||||
# Number of workers to test. This is a loop.
|
@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
source ~/stackrc
|
||||
source browbeat-config
|
||||
source browbeat.cfg
|
||||
|
||||
|
||||
log()
|
||||
{
|
||||
@ -197,6 +198,11 @@ truncate_token_bloat()
|
||||
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
|
||||
log "Usage: ./browbeat.sh <test_prefix>"
|
||||
|
Loading…
Reference in New Issue
Block a user