[gnumeric] t6150: make --verbose work



commit e827317046dfd0f3f8794d57318032354da71faa
Author: Morten Welinder <terra gnome org>
Date:   Thu Mar 13 08:59:01 2014 -0400

    t6150: make --verbose work

 test/t6150-ods-syntax.pl |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/test/t6150-ods-syntax.pl b/test/t6150-ods-syntax.pl
index dfa9bd6..af12400 100755
--- a/test/t6150-ods-syntax.pl
+++ b/test/t6150-ods-syntax.pl
@@ -83,14 +83,18 @@ foreach my $src (@sources) {
     $tmp =~ s|^.*/||;
     $tmp =~ s|\..*|.ods|;
     &GnumericTest::junkfile ($tmp);
-    system ("$ssconvert -T $format $src $tmp");
+    my $cmd = "$ssconvert -T $format $src $tmp";
+    print STDERR "# $cmd\n" if $GnumericTest::verbose;
+    system ($cmd);
     if (!-r $tmp) {
        print STDERR "ssconvert failed to produce $tmp\n";
        die "Fail\n";
     }
 
     for my $member ('content.xml', 'styles.xml') {
-       my $out = `$unzip -p $tmp $member | $xmllint --noout --relaxng $schema - 2>&1`;
+       my $cmd = "$unzip -p $tmp $member | $xmllint --noout --relaxng $schema -";
+       print STDERR "# $cmd\n" if $GnumericTest::verbose;
+       my $out = `$cmd 2>&1`;
        if ($out !~ /^- validates$/) {
            print STDERR "While checking $member from $tmp:\n";
            &GnumericTest::dump_indented ($out);


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