removed unnecessary tmpfile and repetitive keyid extraction from tests/basic
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 18 Jan 2010 03:23:25 +0000 (22:23 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 18 Jan 2010 03:23:25 +0000 (22:23 -0500)
tests/basic

index 1d51a698f3df10e2e66e53de1747b9ee9c5b2094..ad9fb12eaa642d4121cc385fe0d1af12998b8c76 100755 (executable)
@@ -567,10 +567,7 @@ echo "##################################################"
 echo "### revoking ssh host key..."
 # generate the revocation certificate and feed it directly to the test
 # user's keyring (we're not publishing to the keyservers)
-keyID=$(monkeysphere-host s 'ssh://testhost' | grep 'OpenPGP fingerprint:' | awk '{ print $3 }')
-monkeysphere-host revoke-key "$keyID" >"$TEMPDIR"/revcert
-cat "$TEMPDIR"/revcert
-<"$TEMPDIR"/revcert gpg --import
+monkeysphere-host revoke-key "$SSHHOSTKEYID" | gpg --import
 echo
 echo "##################################################"
 echo "### ssh connection test for failure..."