]> granicus.if.org Git - zfs/commit
Simplify deleting partitions in libtest
authorRyan Moeller <ryan@freqlabs.com>
Thu, 29 Aug 2019 20:11:29 +0000 (16:11 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 29 Aug 2019 20:11:29 +0000 (13:11 -0700)
commit815a6456928b56b98bea3c9508f4037b6d6f4759
tree15126bbf4792d47e8fa6068c166d871e494c1f39
parentf66ad580cca5493b6f4b7acb23aa7d82f3b82755
Simplify deleting partitions in libtest

Eliminate unnecessary code duplication. We can use a for-loop instead
of a while-loop. There is no need to echo $DISKSARRAY in a subshell or
return 0. Declare all variables with typeset.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Signed-off-by: Ryan Moeller <ryan@ixsystems.com>
Closes #9224
tests/zfs-tests/include/libtest.shlib