Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-7174 build: add mmap_cat to .gitignore
[fs/lustre-release.git]
/
lustre
/
tests
/
rpc.sh
diff --git
a/lustre/tests/rpc.sh
b/lustre/tests/rpc.sh
index
e1127d2
..
bbe9337
100755
(executable)
--- a/
lustre/tests/rpc.sh
+++ b/
lustre/tests/rpc.sh
@@
-9,11
+9,12
@@
if [ ! -f $LUSTRE/tests/rpc.sh ]; then
fi
. $LUSTRE/tests/test-framework.sh
fi
. $LUSTRE/tests/test-framework.sh
-init_test_env $@
+RPC_MODE=true init_test_env
. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
. ${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 $?
+# Execute the command
+"$@"