Whamcloud - gitweb
LU-12472 tests: update sanity-krb5.sh
[fs/lustre-release.git] / lustre / tests / rpc.sh
index e1127d2..a5831c8 100755 (executable)
@@ -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
+"$@"