aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2020-02-12 16:04:51 -0500
committerGitHub <[email protected]>2020-02-12 13:04:51 -0800
commit834f274fbfa0642e62944784a06b0e184065bdf0 (patch)
treeaf95bdb8f8f95bacf2dcf81737e7470b6afc91f5 /tests
parent9c536b9a7824f17ab85ba9dfafc95f65eac68e0e (diff)
ZTS: Interpret env vars in faketty on FreeBSD
This was missed in review. On FreeBSD, script does not understand environment variables being passed as a command. Use env to make faketty handle env vars on FreeBSD. Reviewed-by: Igor Kozhukhov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #9981
Diffstat (limited to 'tests')
-rw-r--r--tests/zfs-tests/include/commands.cfg1
-rw-r--r--tests/zfs-tests/include/libtest.shlib2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/zfs-tests/include/commands.cfg b/tests/zfs-tests/include/commands.cfg
index 77562700c..b6cc3402b 100644
--- a/tests/zfs-tests/include/commands.cfg
+++ b/tests/zfs-tests/include/commands.cfg
@@ -114,6 +114,7 @@ export SYSTEM_FILES_COMMON='arp
export SYSTEM_FILES_FREEBSD='chflags
compress
dumpon
+ env
fsck
getextattr
gpart
diff --git a/tests/zfs-tests/include/libtest.shlib b/tests/zfs-tests/include/libtest.shlib
index bddca368d..d13abc4d6 100644
--- a/tests/zfs-tests/include/libtest.shlib
+++ b/tests/zfs-tests/include/libtest.shlib
@@ -3970,7 +3970,7 @@ function stat_size #<path>
function faketty
{
if is_freebsd; then
- script -q /dev/null "$@"
+ script -q /dev/null env "$@"
else
script --return --quiet -c "$*" /dev/null
fi