diff options
author | Michael Weiss <dev.primeos@gmail.com> | 2019-01-28 16:09:24 +0100 |
---|---|---|
committer | Michael Weiss <dev.primeos@gmail.com> | 2019-01-28 16:18:39 +0100 |
commit | 829d105b586cc4643e7207e1fbf066431577e3f1 (patch) | |
tree | 81611f2ce5dff8f89f315b18902918072b71e62d /pkgs/tools/security/monkeysphere | |
parent | 719b7dcfb1605002b80ff8b2df9da3d0a0edb736 (diff) |
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!
Diffstat (limited to 'pkgs/tools/security/monkeysphere')
-rw-r--r-- | pkgs/tools/security/monkeysphere/monkeysphere.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/tools/security/monkeysphere/monkeysphere.patch b/pkgs/tools/security/monkeysphere/monkeysphere.patch index fdf4b9335b198..0a05635d6a808 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 |