diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-05-31 09:43:02 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-05-31 09:43:02 +0000 |
commit | 8de13f3008b9a92747bc33337522e6c85ee60e32 (patch) | |
tree | 41c840f797ac86328c39951f67e1e6aeddf0d9a9 /t/cfg.t | |
parent | 8b3503fd8b9a31e1ea2cc633566086c0828cb610 (diff) | |
download | urpmi-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/cfg.t')
-rw-r--r-- | t/cfg.t | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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"; } |