From a0dac729be1875c9918134b10bc64f7e72b73490 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 6 May 2020 14:32:30 +0200 Subject: Make it easier to debug --- t/helper.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1