NAME
Test2::Harness::Runner::Resource::Disk - Throttle jobs when disk space is low.
SYNOPSIS
yath test -R Disk --disk-mount /tmp:25%
yath test -R Disk --disk-mount /tmp:25% --disk-mount /var:1gb
DESCRIPTION
Gates new test launches when free space on any tracked mount drops below its threshold. Every available() call performs a fresh Filesys::Df sample on each tracked mount (no TTL cache).
Three consecutive sample failures on any mount mark the resource permanently broken; subsequent available() calls return -1 which skips dependent tests (or fails them with --fail-on-resource-skip).
OPTIONAL DEPENDENCY
Requires Filesys::Df: cpanm Filesys::Df.
NETWORK FILESYSTEMS
Do not use on network filesystems (NFS, CIFS, sshfs, fuse). Each available() call performs statvfs(2), which on a network mount blocks on a round-trip and may return stale client-cached data.
SOURCE
The source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/.
MAINTAINERS
AUTHORS
COPYRIGHT
Copyright Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://dev.perl.org/licenses/