summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-05-31 09:43:02 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-05-31 09:43:02 +0000
commit8de13f3008b9a92747bc33337522e6c85ee60e32 (patch)
tree41c840f797ac86328c39951f67e1e6aeddf0d9a9 /t
parent8b3503fd8b9a31e1ea2cc633566086c0828cb610 (diff)
downloadurpmi-8de13f3008b9a92747bc33337522e6c85ee60e32.tar
urpmi-8de13f3008b9a92747bc33337522e6c85ee60e32.tar.gz
urpmi-8de13f3008b9a92747bc33337522e6c85ee60e32.tar.bz2
urpmi-8de13f3008b9a92747bc33337522e6c85ee60e32.tar.xz
urpmi-8de13f3008b9a92747bc33337522e6c85ee60e32.zip
- 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"
Diffstat (limited to 't')
-rw-r--r--t/cfg.t5
1 files changed, 2 insertions, 3 deletions
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";
}