]> granicus.if.org Git - zfs/commit
ZTS: Fix mmp_interval failure
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 19 Jun 2019 17:39:28 +0000 (10:39 -0700)
committerGitHub <noreply@github.com>
Wed, 19 Jun 2019 17:39:28 +0000 (10:39 -0700)
commit4ca457b065c6d95d9b6b2ed776f14e7e33257b94
tree23b74afb3c689bb997b3561f94eea58508ca15da
parent30af21b02569ac192f52ce6e6511015f8a8d5729
ZTS: Fix mmp_interval failure

The mmp_interval test case was failing on Fedora 30 due to the built-in
'echo' command terminating the script when it was unable to write to
the sysfs module parameter.  This change in behavior was observed with
ksh-2020.0.0-alpha1.  Resolve the issue by using the external cat
command which fails gracefully as expected.

Additionally, remove some incorrect quotes around the $? return values.

Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #8906
tests/zfs-tests/include/libtest.shlib