Skip to content

Commit

Permalink
Use rpmkeys --list in test cases
Browse files Browse the repository at this point in the history
This indeed does work with the fs backend nowadays.
Since 42985d5 actually.

Keep the find in the first case to make sure the key is in the right
place. For the second test case the file is gone anyway.
  • Loading branch information
ffesti committed Nov 7, 2024
1 parent 117e6b5 commit 0744ee1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/rpmsigdig.at
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,15 @@ runroot rpmkeys -Kv /data/RPMS/hello-2.0-1.x86_64-signed-with-new-subkey.rpm
[])

RPMTEST_CHECK([
# XXX rpmkeys --list doesn't yet work with fs keystore
runroot_other find /usr/lib/sysimage/rpm/pubkeys -name "*.key" | wc -l
runroot rpmkeys --list | wc -l
runroot rpmkeys --import /data/keys/rpm.org-rsa-2048-add-subkey.asc
runroot rpmkeys --list | wc -l
runroot_other find /usr/lib/sysimage/rpm/pubkeys -name "*.key" | wc -l
],
[0],
[1
1
1
],
[])

Expand Down Expand Up @@ -243,8 +244,7 @@ runroot rpmkeys --delete 1964c5fc
[])

RPMTEST_CHECK([
# XXX rpmkeys --list doesn't yet work with fs keystore
runroot_other find /usr/lib/sysimage/rpm/pubkeys -name "*.key" | wc -l
runroot rpmkeys --list | wc -l
],
[0],
[0
Expand Down

0 comments on commit 0744ee1

Please sign in to comment.