summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/cfg.t10
1 files changed, 7 insertions, 3 deletions
diff --git a/t/cfg.t b/t/cfg.t
index 3ea895fb..45403e24 100644
--- a/t/cfg.t
+++ b/t/cfg.t
@@ -18,7 +18,7 @@ update\\ 1 http://foo/bar/ {
compress: 1
fuzzy: 1
keep: yes
- key-ids: 123
+ key-ids: "123"
update
verify-rpm: yes
}
@@ -26,8 +26,8 @@ update\\ 1 http://foo/bar/ {
update_2 ftp://foo/bar/ {
hdlist: hdlist.update2.cz
ignore
- key_ids: 456
- priority-upgrade: kernel
+ key_ids: 456 789
+ priority-upgrade: 'kernel'
synthesis
with_hdlist: hdlist.update2.cz
}
@@ -40,9 +40,13 @@ ok( ref $config, 'config loaded' );
ok( urpm::cfg::dump_config($file.2, $config), 'config written' );
+# things that have been tidied up by dump_config
$cfgtext =~ s/\byes\b/1/g;
$cfgtext =~ s/\bno\b/0/g;
$cfgtext =~ s/\bkey_ids\b/key-ids/g;
+$cfgtext =~ s/"123"/123/g;
+$cfgtext =~ s/'kernel'/kernel/g;
+
my $cfgtext2 = cat_($file.2);
$cfgtext2 =~ s/# generated.*\n//;
is( $cfgtext, $cfgtext2, 'config is the same' )