summaryrefslogtreecommitdiffstats
path: root/tests/zfs-tests/include
diff options
context:
space:
mode:
authorGeorge Melikov <[email protected]>2018-10-31 20:00:06 +0300
committerBrian Behlendorf <[email protected]>2018-10-31 12:00:06 -0500
commit58aeb87a8f69019487457460a5d7c823910fc8ff (patch)
tree772309683978629c78596d5600031248f00fb5f8 /tests/zfs-tests/include
parent9553c533a635bf39697b0b54f4751580f6d2590d (diff)
ZTS: change `$(cat)` to `$(<)` for speedup
It's better to use ksh/bash built in methods, rather than spawn new processes every time. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: John Wren Kennedy <[email protected]> Signed-off-by: George Melikov <[email protected]> Closes #8071
Diffstat (limited to 'tests/zfs-tests/include')
-rw-r--r--tests/zfs-tests/include/libtest.shlib2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/zfs-tests/include/libtest.shlib b/tests/zfs-tests/include/libtest.shlib
index 51088fccb..e66b2cbaf 100644
--- a/tests/zfs-tests/include/libtest.shlib
+++ b/tests/zfs-tests/include/libtest.shlib
@@ -3332,7 +3332,7 @@ function zed_stop
log_note "Stopping ZED"
if [[ -f ${ZEDLET_DIR}/zed.pid ]]; then
- zedpid=$(cat ${ZEDLET_DIR}/zed.pid)
+ zedpid=$(<${ZEDLET_DIR}/zed.pid)
kill $zedpid
while ps -p $zedpid > /dev/null; do
sleep 1