]> granicus.if.org Git - zfs/commit
ZTS: deletes home directories in /export/home
authorJohn Gallagher <jgallag88@gmail.com>
Tue, 12 Jun 2018 17:42:26 +0000 (10:42 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 12 Jun 2018 17:42:26 +0000 (10:42 -0700)
commitab24877bd3459c84a9220a06acbbbfbb337e59a9
treefb91210ee4ef9e70e98cd708cb83f2ee542b95ec
parent527757126088aed28a92399f6b5c1a2647f7e176
ZTS: deletes home directories in /export/home

In the cleanup for the privilege tests, an empty variable, empty because
the corresponding setup is skipped on Linux, results in /export/home
being deleted. This patch adds an assertion that the variable is not
empty, and causes the cleanup to be skipped on Linux as well.

Reviewed by: John Wren Kennedy <jwk404@gmail.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Paul Dagnelie <pcd@delphix.com>
Signed-off-by: John Gallagher <john.gallagher@delphix.com>
External-issue: LX-1099
Closes #7615
tests/zfs-tests/tests/functional/privilege/cleanup.ksh