]> git.proxmox.com Git - mirror_zfs.git/commit
Allow zfs-tests to recover from hibernation
authorAlek P <alek-p@users.noreply.github.com>
Thu, 11 Apr 2019 17:20:37 +0000 (10:20 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 11 Apr 2019 17:20:37 +0000 (10:20 -0700)
commitb31cf30a155d10e6f4a6dc4941e5b4720c4f2daf
tree386392c225b81c9d4157ca593e576efee68d45f6
parent48ed0f9da0389f3ad44e494b00055c8563f961a1
Allow zfs-tests to recover from hibernation

When a system sleeps during a zfs-test, the time spent
hibernating is counted against the test's runtime even
though the test can't and isn't running.
This patch tries to detect timeouts due to hibernation and
reruns tests that timed out due to system sleeping.
In this version of the patch, the existing behavior of returning
non-zero when a test was killed is preserved. With this patch applied
we still return nonzero and we also automatically rerun the test we
suspect of being killed due to system hibernation.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: John Kennedy <john.kennedy@delphix.com>
Signed-off-by: Alek Pinchuk <apinchuk@datto.com>
Closes #8575
tests/test-runner/bin/test-runner.py