From b370f6424d1e44c960c2c92f313c718536c5e942 Mon Sep 17 00:00:00 2001 From: Daniel Goldman Date: Sat, 11 Nov 2023 19:20:08 -0500 Subject: [PATCH] include coverage of key_req subprocess --- test/key_req.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/key_req.py b/test/key_req.py index f15f22c..773f7dd 100755 --- a/test/key_req.py +++ b/test/key_req.py @@ -45,7 +45,8 @@ def install(tmpdir, install): with open(launcher_path, mode="w", encoding="utf-8") as launcher: launcher.write(textwrap.dedent(f"""\ #!/bin/bash - {sys.executable} {Path(__file__)} $@ + cd {Path(__file__).parent.parent} + {sys.executable} -m coverage run {Path(__file__)} $@ """)) os.chmod(launcher_path, 0o755)