Whamcloud - gitweb
LU-2237 tests: new test for re-recreating last_rcvd
[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 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 # Execute the command
20 "$@"