aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zfs-tests/callbacks
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/callbacks
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/callbacks')
-rwxr-xr-xtests/zfs-tests/callbacks/zfs_mmp.ksh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/zfs-tests/callbacks/zfs_mmp.ksh b/tests/zfs-tests/callbacks/zfs_mmp.ksh
index df2cd132d..402e0b03f 100755
--- a/tests/zfs-tests/callbacks/zfs_mmp.ksh
+++ b/tests/zfs-tests/callbacks/zfs_mmp.ksh
@@ -18,7 +18,7 @@
# $1: number of lines to output (default: 40)
typeset lines=${1:-40}
-typeset history=$(cat /sys/module/zfs/parameters/zfs_multihost_history)
+typeset history=$(</sys/module/zfs/parameters/zfs_multihost_history)
if [ $history -eq 0 ]; then
exit