summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2010-05-11 13:17:11 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2010-05-11 13:17:11 +0000
commitdcbaf58a756e8df5322181568d43d13f25391b0e (patch)
tree5dd247ca161791b42e28f82cd818a134820fa258
parent3e3ac2003448915f57e71bbcf24074ed6959f0d6 (diff)
downloadurpmi-dcbaf58a756e8df5322181568d43d13f25391b0e.tar
urpmi-dcbaf58a756e8df5322181568d43d13f25391b0e.tar.gz
urpmi-dcbaf58a756e8df5322181568d43d13f25391b0e.tar.bz2
urpmi-dcbaf58a756e8df5322181568d43d13f25391b0e.tar.xz
urpmi-dcbaf58a756e8df5322181568d43d13f25391b0e.zip
adjust expected test results
These tests have 2 valid outputs depending on which order the packages are picked by urpmi, seems this order changed, so we have to adjust the expected results
-rw-r--r--t/superuser--handle-conflict-deps.t4
-rw-r--r--t/superuser--handle-conflict-deps2.t4
2 files changed, 4 insertions, 4 deletions
diff --git a/t/superuser--handle-conflict-deps.t b/t/superuser--handle-conflict-deps.t
index 6d349cbd..24197604 100644
--- a/t/superuser--handle-conflict-deps.t
+++ b/t/superuser--handle-conflict-deps.t
@@ -39,10 +39,10 @@ sub test_conflict_on_upgrade {
sub test_conflict_on_install {
urpmi('--auto a b');
- check_installed_and_remove('a'); # WARNING: either a or b is chosen, depending on hdlist order
+ check_installed_and_remove('b', 'b-sub'); # WARNING: either a or b is chosen, depending on hdlist order
urpmi('--auto f g'); # test for bug #52135
- check_installed_and_remove('g');
+ check_installed_and_remove('f');
}
sub test_simple {
diff --git a/t/superuser--handle-conflict-deps2.t b/t/superuser--handle-conflict-deps2.t
index a59c35f7..f192faee 100644
--- a/t/superuser--handle-conflict-deps2.t
+++ b/t/superuser--handle-conflict-deps2.t
@@ -24,10 +24,10 @@ urpmi_addmedia("$name $::pwd/media/$name");
# 'c-2','d2-2' is also a valid result; both wanted pkgs can't be installed,
# so urpmi can arbitrarily drop one (after confirming with user, of course)
-test(['d1-1', 'c-1'], ['c-2', 'd1-2'], ['c-1', 'd1-2']);
+test(['d1-1', 'c-1'], ['c-2', 'd1-2'], ['c-2', 'd2-2']);
# 'a1-2','b-1' is also a valid result
-test(['a1-1', 'b-1'], ['b-2', 'a1-2'], ['b-2', 'a2-2']);
+test(['a1-1', 'b-1'], ['b-2', 'a1-2'], ['b-1', 'a1-2']);
sub test {