[gnumeric] Tests: keep temporary files in .



commit 519b16a7a6060f87f33eeb10929fdda11f96a7f4
Author: Morten Welinder <terra gnome org>
Date:   Fri Feb 21 21:20:12 2014 -0500

    Tests: keep temporary files in .

 test/GnumericTest.pm |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/test/GnumericTest.pm b/test/GnumericTest.pm
index 1dfe951..d25db66 100644
--- a/test/GnumericTest.pm
+++ b/test/GnumericTest.pm
@@ -375,7 +375,9 @@ sub test_roundtrip {
 
     my $file_resized = $file;
     if ($resize) {
+       $file_resized =~ s{^.*/}{};
        $file_resized =~ s/(\.gnumeric)$/-resize$1/;
+       print STDERR "$ssconvert --resize $resize '$file' '$file_resized' 2>&1 | sed -e 's/^/| /'\n" if 
$verbose;
        $code = system ("$ssconvert --resize $resize '$file' '$file_resized' 2>&1 | sed -e 's/^/| /'");
        &system_failure ($ssconvert, $code) if $code;
        &junkfile ($file_resized) unless $keep;
@@ -383,6 +385,7 @@ sub test_roundtrip {
 
     my $tmp1 = "$tmp.$newext";
     &junkfile ($tmp1) unless $keep;
+    print "$ssconvert -T $format '$file_resized' '$tmp1' 2>&1 | sed -e 's/^/| /'\n" if $verbose;
     $code = system ("$ssconvert -T $format '$file_resized' '$tmp1' 2>&1 | sed -e 's/^/| /'");
     &system_failure ($ssconvert, $code) if $code;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]