~hingo/percona-toolkit/pqd-mongodb-24

« back to all changes in this revision

Viewing changes to sandbox/start-sandbox

Fix pt-heartbeat/pxc.t.  Exit early in test-env if wget fails.  Add APP=FORK|mysql to start-sandbox so it too works around the pxc mysqld -V bug; add FORK=pxc to start_sandbox() calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
223
223
else
224
224
   die "Cannot find executable mysqld in $PERCONA_TOOLKIT_SANDBOX/bin, $PERCONA_TOOLKIT_SANDBOX/sbin or $PERCONA_TOOLKIT_SANDBOX/libexec."
225
225
fi
226
 
if [ $type != "cluster" ]; then
227
 
   version=`$PERCONA_TOOLKIT_SANDBOX/$mysqld -V 2>/dev/null | awk '{print $3}' | cut -d. -f 1,2`;
228
 
else
 
226
 
 
227
APP="${FORK:-"mysql"}"
 
228
 
 
229
if [ $type = "cluster" -o $APP = "pxc" ]; then
229
230
   ip=$(perl -MNet::Address::IP::Local -le 'print Net::Address::IP::Local->public')
230
231
   version=`$PERCONA_TOOLKIT_SANDBOX/$mysqld -V --bind-address $ip 2>/dev/null | awk '{print $3}' | cut -d. -f 1,2`;
 
232
else
 
233
   version=`$PERCONA_TOOLKIT_SANDBOX/$mysqld -V 2>/dev/null | awk '{print $3}' | cut -d. -f 1,2`;
231
234
fi
 
235
 
232
236
if [ ! -d "$PERCONA_TOOLKIT_BRANCH/sandbox/servers/$version" ]; then
233
237
   die "$PERCONA_TOOLKIT_BRANCH/sandbox/servers/$version does not exist."
234
238
fi