From 8de13f3008b9a92747bc33337522e6c85ee60e32 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 31 May 2007 09:43:02 +0000 Subject: - adapt test to change in urpm/cfg.pm - when something goes wrong, display the diff using $file.verbatim, which may be more useful since things are "tidied up" --- t/cfg.t | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 't') diff --git a/t/cfg.t b/t/cfg.t index 15e2f927..542d8c09 100644 --- a/t/cfg.t +++ b/t/cfg.t @@ -34,7 +34,6 @@ update_2 ftp://foo/bar/ { synthesis with_hdlist: hdlist.update2.cz } - URPMICFG close $f; @@ -73,13 +72,13 @@ is( $cfgtext, $cfgtext2, 'config is the same' ) my $cfgtext2 = read_file("$file.bad"); $cfgtext2 =~ s/# generated.*\n//; isnt( $cfgtext, $cfgtext2, 'config should differ' ) - or system qw( diff -u ), $file, "$file.bad"; + or system qw( diff -u ), "$file.verbatim", "$file.bad"; } { my $cfgtext2 = read_file("$file.state"); $cfgtext2 =~ s/# generated.*\n//; is( $cfgtext, $cfgtext2, 'config is the same' ) - or system qw( diff -u ), $file, "$file.state"; + or system qw( diff -u ), "$file.verbatim", "$file.state"; } -- cgit v1.2.1