]> git.proxmox.com Git - mirror_zfs.git/commit
ZTS: Make fault cleanup function more robust
authorJohn Wren Kennedy <jwk404@gmail.com>
Fri, 12 Apr 2019 17:07:20 +0000 (11:07 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 12 Apr 2019 17:07:20 +0000 (10:07 -0700)
commit9e3485abfcff126654c98aa64512505e603215d0
tree5a10567b7db2a571bc66702137e0c9dd90702ab3
parentb31cf30a155d10e6f4a6dc4941e5b4720c4f2daf
ZTS: Make fault cleanup function more robust

The cleanup function of auto_online_001_pos does not account for the
possibility that the test may fail while a disk is still removed. If
the test run is using real disks, cleanup should involve restoring any
that are missing.

Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: John Kennedy <john.kennedy@delphix.com>
Closes #8579
tests/zfs-tests/tests/functional/fault/auto_online_001_pos.ksh