diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2020-05-06 08:45:07 +0100 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2020-05-06 08:45:07 +0100 |
commit | a73204c5d714abafd2bf5f02694029e4c689062c (patch) | |
tree | 59a7d0fb72b09f313bb557287ac4494b4c3d1211 /t/helper.pm | |
parent | b53228bb9cbb0af8f00838234ffa93910be319cb (diff) | |
download | perl-Hal-Cdroms-a73204c5d714abafd2bf5f02694029e4c689062c.tar perl-Hal-Cdroms-a73204c5d714abafd2bf5f02694029e4c689062c.tar.gz perl-Hal-Cdroms-a73204c5d714abafd2bf5f02694029e4c689062c.tar.bz2 perl-Hal-Cdroms-a73204c5d714abafd2bf5f02694029e4c689062c.tar.xz perl-Hal-Cdroms-a73204c5d714abafd2bf5f02694029e4c689062c.zip |
Disable mail from 'at' when running wait-for- tests.
Diffstat (limited to 't/helper.pm')
-rw-r--r-- | t/helper.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper.pm b/t/helper.pm index 3890797..0e93716 100644 --- a/t/helper.pm +++ b/t/helper.pm @@ -14,7 +14,7 @@ sub create_fake_media { or die "Unexpected number of scsi_debug devices\n"; my ($prefix, $device) = split("block/", $paths[0]); if ($o_delay) { - system("echo 'sleep $o_delay; dd if=t/cdroms-test.iso of=/dev/$device conv=nocreat' | at now >& /dev/null") == 0 + system("echo 'sleep $o_delay; dd if=t/cdroms-test.iso of=/dev/$device conv=nocreat' | at -M now >& /dev/null") == 0 or die "Failed to schedule copy of ISO to fake SCSI device\n"; } else { system("dd if=t/cdroms-test.iso of=/dev/$device conv=nocreat >& /dev/null") == 0 |