diff options
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, 0 insertions, 24 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 deleted file mode 100644 index 46074d2241a5..000000000000 --- a/app-crypt/yubikey-manager/files/yubikey-manager-0.7.0-fix-tests.patch +++ /dev/null @@ -1,24 +0,0 @@ -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 |