aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zfs-tests
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2020-02-26 11:41:30 -0500
committerGitHub <[email protected]>2020-02-26 08:41:30 -0800
commitabef699866508f96157290e2a85482968e094a58 (patch)
tree58c3e36f4b472dff51a37e7deef8cf57249320be /tests/zfs-tests
parent3a192f7d898e78dfdf5c2f7b2dd983b23eaf25f6 (diff)
ZTS: Adapt casenorm tests for FreeBSD
Several casenorm tests pass on FreeBSD but are expected to fail on Linux. Move the passing tests from "fail" to "maybe" so that passing on FreeBSD is not unexpected. Invert platform logic so FreeBSD doesn't use illumos-only zlook. Reviewed-by: George Melikov <[email protected]> Reviewed-by: Igor Kozhukhov <[email protected]> Reviewed-by: John Kennedy <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #10050
Diffstat (limited to 'tests/zfs-tests')
-rw-r--r--tests/zfs-tests/tests/functional/casenorm/casenorm.kshlib12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/zfs-tests/tests/functional/casenorm/casenorm.kshlib b/tests/zfs-tests/tests/functional/casenorm/casenorm.kshlib
index 5b080165b..cb61798d7 100644
--- a/tests/zfs-tests/tests/functional/casenorm/casenorm.kshlib
+++ b/tests/zfs-tests/tests/functional/casenorm/casenorm.kshlib
@@ -65,10 +65,10 @@ function lookup_file
{
typeset name=$1
- if is_linux; then
- test -f "${TESTDIR}/${name}" >/dev/null 2>&1
- else
+ if is_illumos; then
zlook -l $TESTDIR $name >/dev/null 2>&1
+ else
+ test -f "${TESTDIR}/${name}" >/dev/null 2>&1
fi
}
@@ -76,10 +76,10 @@ function lookup_file_ci
{
typeset name=$1
- if is_linux; then
- test -f "${TESTDIR}/${name}" >/dev/null 2>&1
- else
+ if is_illumos; then
zlook -il $TESTDIR $name >/dev/null 2>&1
+ else
+ test -f "${TESTDIR}/${name}" >/dev/null 2>&1
fi
}