From: Michael Schroeder Date: Wed, 18 Oct 2017 11:50:54 +0000 (+0200) Subject: Adapt test cases to dup rule changes X-Git-Tag: 0.6.30~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=842f01ae93810ceed2eabd9afa662ec5cd96668b;p=thirdparty%2Flibsolv.git Adapt test cases to dup rule changes We now have two solutions: keep the old package or deinstall it. (I.e. we can either disable the dup rule or the update rule.) --- diff --git a/test/testcases/distupgrade/dup_multiversion3.t b/test/testcases/distupgrade/dup_multiversion3.t index 8be31901..97eb20f5 100644 --- a/test/testcases/distupgrade/dup_multiversion3.t +++ b/test/testcases/distupgrade/dup_multiversion3.t @@ -12,17 +12,18 @@ system i686 * system job multiversion name a job distupgrade all packages result transaction,problems -#>problem 251f1f35 info nothing provides c needed by a-2-1.i686 -#>problem 251f1f35 solution 2f2d254c allow a-1-1.i686@system +#>problem fc3d647e info nothing provides c needed by a-2-1.i686 +#>problem fc3d647e solution 179b72ed allow a-1-1.i686@system +#>problem fc3d647e solution e5fc66c9 erase a-1-1.i686@system nextjob job multiversion name a job distupgrade repo available result transaction,problems -#>erase a-1-1.i686@system -#>problem 251f1f35 info nothing provides c needed by a-2-1.i686 -#>problem 251f1f35 solution 2f2d254c allow a-1-1.i686@system +#>problem fc3d647e info nothing provides c needed by a-2-1.i686 +#>problem fc3d647e solution 179b72ed allow a-1-1.i686@system +#>problem fc3d647e solution e5fc66c9 erase a-1-1.i686@system ### same with keeporphans diff --git a/test/testcases/distupgrade/dup_noarchchange.t b/test/testcases/distupgrade/dup_noarchchange.t index f500d9bf..82315614 100644 --- a/test/testcases/distupgrade/dup_noarchchange.t +++ b/test/testcases/distupgrade/dup_noarchchange.t @@ -9,7 +9,8 @@ system i686 * system solverflags !dupallowarchchange job distupgrade all packages result transaction,problems -#>problem c43b1300 info problem with installed package a-1-1.i686 -#>problem c43b1300 solution c43b1300 replace a-1-1.i686@system a-2-1.i586@available +#>problem 7724e627 info problem with installed package a-1-1.i686 +#>problem 7724e627 solution 25ae2253 allow a-1-1.i686@system +#>problem 7724e627 solution 2cf4745c replace a-1-1.i686@system a-2-1.i586@available #>upgrade a-1-1.i686@system a-2-1.i586@available #>upgrade b-1-1.i686@system b-2-1.i686@available diff --git a/test/testcases/distupgrade/dup_orphan3.t b/test/testcases/distupgrade/dup_orphan3.t index 6c043488..361649ae 100644 --- a/test/testcases/distupgrade/dup_orphan3.t +++ b/test/testcases/distupgrade/dup_orphan3.t @@ -1,6 +1,6 @@ # test dup with orphaned packages # -# part 3: a is not really an orphan, but cannott be downgraded +# part 3: a is not really an orphan, but cannot be downgraded # repo system 0 testtags @@ -16,8 +16,9 @@ job distupgrade all packages result transaction,problems #>downgrade a-1-1.i686@system a-1-0.i686@available #>upgrade b-1-1.i686@system b-2-1.i686@available -#>problem c43b1300 info problem with installed package a-1-1.i686 -#>problem c43b1300 solution c43b1300 replace a-1-1.i686@system a-1-0.i686@available +#>problem 7724e627 info problem with installed package a-1-1.i686 +#>problem 7724e627 solution 25ae2253 allow a-1-1.i686@system +#>problem 7724e627 solution 2cf4745c replace a-1-1.i686@system a-1-0.i686@available nextjob @@ -26,8 +27,9 @@ job distupgrade repo available result transaction,problems #>downgrade a-1-1.i686@system a-1-0.i686@available #>upgrade b-1-1.i686@system b-2-1.i686@available -#>problem c43b1300 info problem with installed package a-1-1.i686 -#>problem c43b1300 solution c43b1300 replace a-1-1.i686@system a-1-0.i686@available +#>problem 7724e627 info problem with installed package a-1-1.i686 +#>problem 7724e627 solution 25ae2253 allow a-1-1.i686@system +#>problem 7724e627 solution 2cf4745c replace a-1-1.i686@system a-1-0.i686@available ### keeporphans @@ -38,8 +40,9 @@ job distupgrade all packages result transaction,problems #>downgrade a-1-1.i686@system a-1-0.i686@available #>upgrade b-1-1.i686@system b-2-1.i686@available -#>problem c43b1300 info problem with installed package a-1-1.i686 -#>problem c43b1300 solution c43b1300 replace a-1-1.i686@system a-1-0.i686@available +#>problem 7724e627 info problem with installed package a-1-1.i686 +#>problem 7724e627 solution 25ae2253 allow a-1-1.i686@system +#>problem 7724e627 solution 2cf4745c replace a-1-1.i686@system a-1-0.i686@available nextjob @@ -48,9 +51,9 @@ job distupgrade repo available result transaction,problems #>downgrade a-1-1.i686@system a-1-0.i686@available #>upgrade b-1-1.i686@system b-2-1.i686@available -#>problem c43b1300 info problem with installed package a-1-1.i686 -#>problem c43b1300 solution c43b1300 replace a-1-1.i686@system a-1-0.i686@available - +#>problem 7724e627 info problem with installed package a-1-1.i686 +#>problem 7724e627 solution 25ae2253 allow a-1-1.i686@system +#>problem 7724e627 solution 2cf4745c replace a-1-1.i686@system a-1-0.i686@available ### same with allowuninstall