Whamcloud - gitweb
LU-12616 obclass: fix MDS start/stop race
[fs/lustre-release.git] / lustre / tests / rpc.sh
1 #!/bin/bash
2 export PATH=`dirname $0`/../utils:$PATH
3 NAME=${NAME:-local}
4
5 LUSTRE=${LUSTRE:-$(cd $(dirname $0)/..; echo $PWD)}
6
7 if [ ! -f $LUSTRE/tests/rpc.sh ]; then
8     LUSTRE=$(cd $(dirname $(which $0))/..; echo $PWD)
9 fi
10
11 . $LUSTRE/tests/test-framework.sh
12 RPC_MODE=true init_test_env
13 . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
14
15 # Reset the trap on ERR set by the framework.  Noticing this failure is the
16 # framework's job.
17 trap - ERR
18
19 log "$HOSTNAME: executing $@"
20 # Execute the command
21 "$@"