X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Frpc.sh;h=a5831c8f5af7232e13e3d1b69250db296d72117b;hb=9d068048603fefbab1eea8d8bb5a246ce4375dca;hp=e1127d20dabd38cee0a1d21b0dbed7431c5067f1;hpb=e4cf956f93a4384d19ea73e601a6651710703492;p=fs%2Flustre-release.git diff --git a/lustre/tests/rpc.sh b/lustre/tests/rpc.sh index e1127d2..a5831c8 100755 --- a/lustre/tests/rpc.sh +++ b/lustre/tests/rpc.sh @@ -9,11 +9,13 @@ if [ ! -f $LUSTRE/tests/rpc.sh ]; then fi . $LUSTRE/tests/test-framework.sh -init_test_env $@ +RPC_MODE=true init_test_env . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh} -cmd=$1 -shift -$cmd $@ +# Reset the trap on ERR set by the framework. Noticing this failure is the +# framework's job. +trap - ERR -exit $? +log "$HOSTNAME: executing $@" +# Execute the command +"$@"