summaryrefslogtreecommitdiff
path: root/app-crypt/yubikey-manager/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-crypt/yubikey-manager/files
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-crypt/yubikey-manager/files')
-rw-r--r--app-crypt/yubikey-manager/files/yubikey-manager-0.7.0-fix-tests.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/app-crypt/yubikey-manager/files/yubikey-manager-0.7.0-fix-tests.patch b/app-crypt/yubikey-manager/files/yubikey-manager-0.7.0-fix-tests.patch
new file mode 100644
index 000000000000..46074d2241a5
--- /dev/null
+++ b/app-crypt/yubikey-manager/files/yubikey-manager-0.7.0-fix-tests.patch
@@ -0,0 +1,24 @@
+diff --git b/test/util.py a/test/util.py
+new file mode 100644
+index 0000000..0551d06
+--- /dev/null
++++ a/test/util.py
+@@ -0,0 +1,18 @@
++from click.testing import CliRunner
++from ykman.cli.__main__ import cli
++import os
++
++
++PKG_DIR = os.path.dirname(os.path.abspath(__file__))
++
++
++def open_file(*relative_path):
++ return open(os.path.join(PKG_DIR, 'files', *relative_path), 'rb')
++
++
++def ykman_cli(*argv, **kwargs):
++ runner = CliRunner()
++ result = runner.invoke(cli, list(argv), obj={}, **kwargs)
++ if result.exit_code != 0:
++ raise result.exception
++ return result.output