Skip to contentSkip to conversation

tests/instantiating: test the unlinked keyid

PATCH New Ben Boeckel 1 participant 1 message Aug 29, 2019 Keys/keyrings

lore
Share & tools
lore
#0 lore raw

PATCH 6/9 tests/instantiating: test the unlinked keyid

Testing the 0 ID just repeats the "BAD KEY" tests at the beginning of the file.

---
 tests/keyctl/instantiating/bad-args/runtest.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tests/keyctl/instantiating/bad-args/runtest.sh +3 -3
index 1922282..a585e20 100644
@@ -42,11 +42,11 @@ unlink_key --wait $keyid @s
 
 # check that a non-existent key ID fails correctly
 marker "CHECK NON-EXISTENT KEY ID"
-instantiate_key --fail 0 a @p
+instantiate_key --fail $keyid a @p
 expect_error EPERM
-pinstantiate_key --fail a 0 @p
+pinstantiate_key --fail a $keyid @p
 expect_error EPERM
-negate_key --fail 0 10 @p
+negate_key --fail $keyid 10 @p
 expect_error EPERM
 
 echo "++++ FINISHED TEST: $result" >>$OUTPUTFILE
Signature · 1 line
2.21.0