diff options
author | Jinshan Xiong <[email protected]> | 2016-04-06 09:48:10 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-04-12 10:50:01 -0700 |
commit | e61237961448ab1fedf7975715fac753ccc7acef (patch) | |
tree | f1177dfb65b6da52c5bfeaf846578cb14c4a3069 /scripts | |
parent | 2b54cb14517b8b3877716dbe02fe75f12a47eb5e (diff) |
Make zfs test easier to run in local install
When ZFS is installed by 'make install', programs will be installed
into '/usr/local'. ZFS test scripts can't locate programs 'zpool'
that caused tests failure.
Fix typo in help message.
Add sanity check to for ksh and generate a useful error message.
Signed-off-by: Jinshan Xiong <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #4495
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/zfs-tests.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/zfs-tests.sh b/scripts/zfs-tests.sh index dada21917..01fb2b289 100755 --- a/scripts/zfs-tests.sh +++ b/scripts/zfs-tests.sh @@ -177,7 +177,7 @@ $0 -r linux-fast # Cleanup a previous run of the test suite prior to testing, run the # default (linux) suite of tests and perform no cleanup on exit. -$0 -c +$0 -x EOF } @@ -251,6 +251,13 @@ if [ $(sudo whoami) != "root" ]; then fi # +# Check if ksh exists +# +if [ -z "$(which ksh 2>/dev/null)" ]; then + fail "This test suite requires ksh." +fi + +# # Verify the ZFS module stack if loaded. # ${SUDO} ${ZFS_SH} &>/dev/null |