summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-01-17 22:23:25 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-01-17 22:23:25 -0500
commitc4b0a1e409cab69558aaa0fd47f7076ed6481e3e (patch)
treebe86a4cc200141889a1f0aad0c68dba7e9aee1d2 /tests
parentab96342f657750248b1263d08e5ffbc135072675 (diff)
removed unnecessary tmpfile and repetitive keyid extraction from tests/basic
Diffstat (limited to 'tests')
-rwxr-xr-xtests/basic5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/basic b/tests/basic
index 1d51a69..ad9fb12 100755
--- a/tests/basic
+++ b/tests/basic
@@ -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..."