From 829d105b586cc4643e7207e1fbf066431577e3f1 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Mon, 28 Jan 2019 16:09:24 +0100 Subject: [PATCH] monkeysphere: Fix the Ed25519 tests The Ed25519 test was failing inside of the sandbox because /dev/tty is not available: ### generating ed25519 key for testuser... gpg: cannot open '/dev/tty': No such device or address FAILED! --- pkgs/tools/security/monkeysphere/monkeysphere.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/tools/security/monkeysphere/monkeysphere.patch b/pkgs/tools/security/monkeysphere/monkeysphere.patch index fdf4b9335b1..0a05635d6a8 100644 --- a/pkgs/tools/security/monkeysphere/monkeysphere.patch +++ b/pkgs/tools/security/monkeysphere/monkeysphere.patch @@ -28,5 +28,17 @@ diff --git a/src/share/keytrans b/src/share/keytrans # keytrans: this is an RSA key translation utility; it is capable of # transforming RSA keys (both public keys and secret keys) between +diff --git a/tests/basic b/tests/basic +--- a/tests/basic ++++ b/tests/basic +@@ -343,7 +340,7 @@ if [ "$MONKEYSPHERE_TEST_USE_ED25519" = true ]; then + echo "### generating ed25519 key for testuser..." + # from the imported secret key + USER_FPR=8A4B353B4CBA6F30625498BAE00B5EEEBA79B482 +- gpg --quick-add-key "$USER_FPR" ed25519 auth 2d ++ gpg --no-tty --quick-add-key "$USER_FPR" ed25519 auth 2d + else + echo "### generating standard monkeysphere key for testuser..." + monkeysphere gen-subkey -- 2.16.3