Whamcloud - gitweb
LU-17705 ptlrpc: replace synchronize_rcu() with rcu_barrier()
[fs/lustre-release.git] / lustre / tests / rpc.sh
1 #!/bin/bash
2
3 LUSTRE=${LUSTRE:-$(dirname "$0")/..}
4
5 if [[ ! -f "$LUSTRE/tests/rpc.sh" ]]; then
6         FILE_PATH=$(which "$0")
7         DIRECTORY=$(dirname "$FILE_PATH")
8         LUSTRE=$(dirname "$DIRECTORY")
9 fi
10
11 . "$LUSTRE/tests/test-framework.sh"
12 RPC_MODE=true init_test_env
13
14 # Reset the trap on ERR set by the framework.  Noticing this failure is the
15 # framework's job.
16 trap - ERR
17
18 log "$HOSTNAME: executing $*"
19 # Execute the command
20 "$@"