diff options
author | Göktürk Yüksek <gokturk@gentoo.org> | 2018-05-18 19:15:49 -0400 |
---|---|---|
committer | Göktürk Yüksek <gokturk@gentoo.org> | 2018-05-18 19:19:29 -0400 |
commit | f65929c26f1210b1d0987ce8d55800d8e9dfdc87 (patch) | |
tree | 837f37e8352ad7188057e10aa133e0ee2fc1d12c /app-crypt/yubikey-manager/files/yubikey-manager-0.7.0-fix-tests.patch | |
parent | dev-python/fido2: initial commit with version 0.3.0 (diff) | |
download | gentoo-f65929c26f1210b1d0987ce8d55800d8e9dfdc87.tar.gz gentoo-f65929c26f1210b1d0987ce8d55800d8e9dfdc87.tar.bz2 gentoo-f65929c26f1210b1d0987ce8d55800d8e9dfdc87.zip |
app-crypt/yubikey-manager: bump to 0.7.0
Regarding the test fix patch, see:
https://github.com/Yubico/yubikey-manager/issues/111
Package-Manager: Portage-2.3.27, Repoman-2.3.9
Diffstat (limited to 'app-crypt/yubikey-manager/files/yubikey-manager-0.7.0-fix-tests.patch')
-rw-r--r-- | app-crypt/yubikey-manager/files/yubikey-manager-0.7.0-fix-tests.patch | 24 |
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 |