From 776ad98616a67ea05667e87f97eb9f357d1de47a Mon Sep 17 00:00:00 2001 From: Michal Domonkos Date: Thu, 21 Nov 2024 12:45:32 +0100 Subject: [PATCH] fixup! Add test case for ima file signatures No need for run* wrappers here anymore (since commit dd279b6d867174366235ff65fe89c18cc6643731), also use RPMTEST_SETUP as we don't really need the RPMDB. --- tests/rpmsigdig.at | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/rpmsigdig.at b/tests/rpmsigdig.at index 3d8f5e153e..667ee7e624 100644 --- a/tests/rpmsigdig.at +++ b/tests/rpmsigdig.at @@ -1628,14 +1628,14 @@ RPMTEST_CLEANUP AT_SETUP([ima]) AT_KEYWORDS([rpmsign file signature]) -RPMDB_INIT -cp "${RPMTEST}"/data/RPMS/hello-2.0-1.x86_64.rpm "${RPMTEST}"/tmp/ -gpg2 --import ${RPMTEST}/data/keys/rpm.org-rsa-2048-test.secret -runroot rpmsign --key-id 4344591E1964C5FC --addsign --signfiles --fskpath=/data/keys/privkey.pem /tmp/hello-2.0-1.x86_64.rpm +RPMTEST_SETUP +cp /data/RPMS/hello-2.0-1.x86_64.rpm /tmp/ +gpg2 --import /data/keys/rpm.org-rsa-2048-test.secret +rpmsign --key-id 4344591E1964C5FC --addsign --signfiles --fskpath=/data/keys/privkey.pem /tmp/hello-2.0-1.x86_64.rpm RPMTEST_CHECK([ -runroot rpm -qp --qf "[%{filenames} %{filesignatures}\n]" /tmp/hello-2.0-1.x86_64.rpm | cut -c -20 -runroot rpm -qp --qf "[%{filenames} %{filesignatures}\n]" /data/RPMS/imatest-1.0-1.fc34.noarch.rpm +rpm -qp --qf "[%{filenames} %{filesignatures}\n]" /tmp/hello-2.0-1.x86_64.rpm | cut -c -20 +rpm -qp --qf "[%{filenames} %{filesignatures}\n]" /data/RPMS/imatest-1.0-1.fc34.noarch.rpm ], [0], [/usr/bin/hello 03020