From: Daniel Kahn Gillmor Date: Tue, 14 Jul 2009 04:21:29 +0000 (-0400) Subject: added tests to keytrans add and revoke user ID functionality X-Git-Tag: monkeysphere_0.25~14 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=7a4210adaf12ad3c5023281d87e2ca018f5d68ed;p=monkeysphere.git added tests to keytrans add and revoke user ID functionality --- diff --git a/src/share/keytrans b/src/share/keytrans index 56ddde2..c64b810 100755 --- a/src/share/keytrans +++ b/src/share/keytrans @@ -1084,7 +1084,7 @@ for (basename($0)) { open($instream,'-'); binmode($instream, ":bytes"); - my $revcert = revokeuserid($instream, $fpr, $uid, $ENV{KEYTRANS_REVUID_TIMESTAMP}); + my $revcert = revokeuserid($instream, $fpr, $uid, $ENV{PEM2OPENPGP_TIMESTAMP}); print $revcert; } elsif (/^adduserid$/) { diff --git a/tests/keytrans b/tests/keytrans index 199db31..b73d422 100755 --- a/tests/keytrans +++ b/tests/keytrans @@ -43,6 +43,7 @@ TEMPDIR=$(mktemp -d "${TMPDIR:-$TESTDIR/tmp}/monkeyspheretest.XXXXXXX") mkdir "$TEMPDIR"/bin ln -s "$TESTDIR"/../src/share/keytrans "$TEMPDIR"/bin/openpgp2ssh ln -s "$TESTDIR"/../src/share/keytrans "$TEMPDIR"/bin/pem2openpgp +ln -s "$TESTDIR"/../src/share/keytrans "$TEMPDIR"/bin/keytrans # Use the local copy of executables first, instead of system ones. # This should help us test without installing. @@ -64,6 +65,7 @@ chmod 700 "$TEMPDIR" cat > "$TEMPDIR"/gpg.conf <expectedout <expectedout <