From a73204c5d714abafd2bf5f02694029e4c689062c Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Wed, 6 May 2020 08:45:07 +0100 Subject: Disable mail from 'at' when running wait-for- tests. --- t/24-wait-for-mounted.t | 2 +- t/helper.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/t/24-wait-for-mounted.t b/t/24-wait-for-mounted.t index 2f09f10..ef6f006 100644 --- a/t/24-wait-for-mounted.t +++ b/t/24-wait-for-mounted.t @@ -23,7 +23,7 @@ my $fake_device = create_fake_media(3); if (!$auto_mounted) { my $tmp_dir = tempdir(CLEANUP => 1); - system("echo 'sleep 4; mount /dev/$fake_device $tmp_dir' | at now >& /dev/null"); + system("echo 'sleep 4; mount /dev/$fake_device $tmp_dir' | at -M now >& /dev/null"); } my $cdroms = Hal::Cdroms->new; 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 -- cgit v1.2.1