From b1e868a611df2bba63d32bf85412ff83b7fb2f1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= Date: Mon, 24 Apr 2023 16:46:06 +0200 Subject: [PATCH] Test undoing install transaction when another arch is installed For https://bugzilla.redhat.com/show_bug.cgi?id=2172292 The fix is in libsolv. --- .../dnf/install-remove-multilib.feature | 11 +++++++++++ .../perduto-1.0-1.fc29.i686.spec | 14 ++++++++++++++ .../perduto-1.0-1.fc29.x86_64.spec | 14 ++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 dnf-behave-tests/fixtures/specs/install-remove-multilib/perduto-1.0-1.fc29.i686.spec create mode 100644 dnf-behave-tests/fixtures/specs/install-remove-multilib/perduto-1.0-1.fc29.x86_64.spec diff --git a/dnf-behave-tests/dnf/install-remove-multilib.feature b/dnf-behave-tests/dnf/install-remove-multilib.feature index a7b068d30..11ccff408 100644 --- a/dnf-behave-tests/dnf/install-remove-multilib.feature +++ b/dnf-behave-tests/dnf/install-remove-multilib.feature @@ -74,3 +74,14 @@ Scenario: Installing an older version of x86_64 pulls in a newer version of i686 | install | foo-1.0-1.x86_64 | | install-dep | python3-foo-1.0-1.x86_64 | | install-dep | python3-foo-clibs-1.0-1.x86_64 | + + +@bz2172292 +Scenario: undo install transaction when another arch is installed +Given I successfully execute dnf with args "install perduto.i686" + And I successfully execute dnf with args "install perduto.x86_64" + When I execute dnf with args "history undo last" + Then the exit code is 0 + And Transaction is following + | Action | Package | + | remove | perduto-0:1.0-1.fc29.x86_64 | diff --git a/dnf-behave-tests/fixtures/specs/install-remove-multilib/perduto-1.0-1.fc29.i686.spec b/dnf-behave-tests/fixtures/specs/install-remove-multilib/perduto-1.0-1.fc29.i686.spec new file mode 100644 index 000000000..1cd90c383 --- /dev/null +++ b/dnf-behave-tests/fixtures/specs/install-remove-multilib/perduto-1.0-1.fc29.i686.spec @@ -0,0 +1,14 @@ +Name: perduto +Version: 1.0 +Release: 1.fc29 +Summary: Made up package + +License: GPLv3+ +Url: None + +%description +pedruto description + +%files + +%changelog diff --git a/dnf-behave-tests/fixtures/specs/install-remove-multilib/perduto-1.0-1.fc29.x86_64.spec b/dnf-behave-tests/fixtures/specs/install-remove-multilib/perduto-1.0-1.fc29.x86_64.spec new file mode 100644 index 000000000..1cd90c383 --- /dev/null +++ b/dnf-behave-tests/fixtures/specs/install-remove-multilib/perduto-1.0-1.fc29.x86_64.spec @@ -0,0 +1,14 @@ +Name: perduto +Version: 1.0 +Release: 1.fc29 +Summary: Made up package + +License: GPLv3+ +Url: None + +%description +pedruto description + +%files + +%changelog