Move some tests to cli_user/zpool_status
commitd84c5a120e992a3576b0fdab233ed619ffeb9539
authorTony Hutter <hutter2@llnl.gov>
Fri, 19 Jul 2019 18:21:54 +0000 (19 11:21 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 19 Jul 2019 18:21:54 +0000 (19 11:21 -0700)
treecabdd1fdd8eda9f37c5329ff49230d533c238a11
parent7f31908913592b3075306daf403f2a334602493e
Move some tests to cli_user/zpool_status

The tests in tests/functional/cli_root/zpool_status should all require
root. However, linux.run has "user =" specified for those tests, which
means they run as a normal user.  When I removed that line to run them
as root, the following tests did not pass:

zpool_status_003_pos
zpool_status_-c_disable
zpool_status_-c_homedir
zpool_status_-c_searchpath

These tests need to be run as a normal user.  To fix this, move these
tests to a new tests/functional/cli_user/zpool_status directory.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #9057
configure.ac
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile.am
tests/zfs-tests/tests/functional/cli_user/Makefile.am
tests/zfs-tests/tests/functional/cli_user/zpool_status/Makefile.am [copied from tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile.am with 76% similarity]
tests/zfs-tests/tests/functional/cli_user/zpool_status/cleanup.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/cli_user/zpool_status/setup.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/cli_user/zpool_status/zpool_status_-c_disable.ksh [moved from tests/zfs-tests/tests/functional/cli_root/zpool_status/zpool_status_-c_disable.ksh with 100% similarity]
tests/zfs-tests/tests/functional/cli_user/zpool_status/zpool_status_-c_homedir.ksh [moved from tests/zfs-tests/tests/functional/cli_root/zpool_status/zpool_status_-c_homedir.ksh with 100% similarity]
tests/zfs-tests/tests/functional/cli_user/zpool_status/zpool_status_-c_searchpath.ksh [moved from tests/zfs-tests/tests/functional/cli_root/zpool_status/zpool_status_-c_searchpath.ksh with 100% similarity]
tests/zfs-tests/tests/functional/cli_user/zpool_status/zpool_status_003_pos.ksh [moved from tests/zfs-tests/tests/functional/cli_root/zpool_status/zpool_status_003_pos.ksh with 100% similarity]