]> granicus.if.org Git - zfs/commit
Use compatible arg order in tests
authorRyan Moeller <ryan@freqlabs.com>
Thu, 29 Aug 2019 18:03:09 +0000 (14:03 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 29 Aug 2019 18:03:09 +0000 (11:03 -0700)
commitf66ad580cca5493b6f4b7acb23aa7d82f3b82755
tree9b39b12e9d6765285734e11e2726c6ca320d2bb8
parenteef0f4d84ec8e33b25792485f1f915efeb95af77
Use compatible arg order in tests

BSD getopt() and getopt_long() want options before arguments.
Reorder arguments to zfs/zpool in tests to put all the options first.

Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@ixsystems.com>
Closes #9228
tests/zfs-tests/tests/functional/alloc_class/alloc_class_004_pos.ksh
tests/zfs-tests/tests/functional/alloc_class/alloc_class_005_pos.ksh
tests/zfs-tests/tests/functional/cli_root/zfs_program/zfs_program_json.ksh