From 4175a005f98dba139208035d820bcc14de711a5a Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 17 Feb 2025 21:42:29 +0100 Subject: solver3: Fix test-apt-move-and-forget-manual-sections Implement the moving of the auto bit. The whole auto-bit management is not entirely optimal yet, but this works. --- test/integration/solver3.broken | 1 - 1 file changed, 1 deletion(-) (limited to 'test/integration') diff --git a/test/integration/solver3.broken b/test/integration/solver3.broken index 2ad00555b..4a4e1532b 100644 --- a/test/integration/solver3.broken +++ b/test/integration/solver3.broken @@ -1,7 +1,6 @@ test-allow-scores-for-all-dependency-types # TBD: We are lacking single-sided conflicts preferences test-apt-get-upgrade-by-source # TBD: Upgrading by source is not supported yet, mostly same issue as above test-apt-install-order-matters-a-bit # Wontfix: Cannot fix, the order is not recorded in the depcache -test-apt-move-and-forget-manual-sections # TBD: Moving the auto bit is not implemented test-bug-470115-new-and-tighten-recommends # TBD: Calculation of what is already satisfied Recommends is broken test-prevent-markinstall-multiarch-same-versionscrew # TBD: We consider the skewed ones obsolete and remove them... test-resolve-by-keep-new-recommends # TBD: Fixing this seems to break test-bug-591882-conkeror, why? -- cgit v1.2.3-70-g09d2 From 815d5b01bf9be1d476b110050b20ae980c76d4a8 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 18 Feb 2025 15:46:04 +0100 Subject: test: Improve output cleaning for solver progress We don't really care about solver progress messages in testing; hide them when comparing output, and hide them better than before. Previously testsuccessequal ... --solver 3.0 behaved differently than tests run with globally forced on 3.0 solver. Stop cleaning up autoremovals, but do clean up "Calculating upgrade" as well. --- test/integration/framework | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'test/integration') diff --git a/test/integration/framework b/test/integration/framework index 3784ece06..35c1a1032 100644 --- a/test/integration/framework +++ b/test/integration/framework @@ -1555,22 +1555,15 @@ downloadfile() { fi } -cleanup_solver3_pipe() { - if [ "$APT_SOLVER" != "3.0" ]; then - cat - else - # FIXME: We do not have support for listing autoremovals yet. - # FIXME: Progress output is different - sed -e '/Solving dependencies\.\.\./ d' \ - -e "/no longer required[.:]$/,/^Use '.* autoremove'/ d" - fi -} cleanup_output() { cat "$1" | sed \ -e '/gpgv: WARNING: This key is not suitable for signing in --compliance=gnupg mode/ d' \ -e '/^profiling:/ d' \ - | sed -e '/\.\.\.profiling:/ {N;s#\.\.\.profiling:.*\n#...#g}' \ - | cleanup_solver3_pipe \ + -e '/\.\.\.profiling:/ {N;s#\.\.\.profiling:.*\n#...#g}' \ + -e '/^Solving dependencies\.\.\.$/ d' \ + -e '/^Calculating upgrade\.\.\.$/ d' \ + -e 's/Solving dependencies\.\.\.//' \ + -e 's/Calculating upgrade\.\.\.//' \ >"$2" } -- cgit v1.2.3-70-g09d2