diff options
-rw-r--r-- | t/helper.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/helper.pm b/t/helper.pm index bcb72e0..bd3e453 100644 --- a/t/helper.pm +++ b/t/helper.pm @@ -24,7 +24,8 @@ sub create_fake_media { my ($_prefix, $device) = split("block/", $paths[0]); if ($o_delay) { my $at = get_at_command(); - system("echo 'sleep $o_delay; dd if=t/cdroms-test.iso of=/dev/$device conv=nocreat' | $at >& /dev/null") == 0 + $at .= " >& /dev/null"; # comment for debugging + system("echo 'sleep $o_delay; dd if=t/cdroms-test.iso of=/dev/$device conv=nocreat' | $at") == 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 |