From a0e254b65c073466d74c7d7b6c941a187641bccb Mon Sep 17 00:00:00 2001 From: Michael Collins Date: Sat, 11 May 2024 10:43:31 -0700 Subject: [PATCH] fix: cmd option /c runs the command and exits. /k keeps the new shell open --- .changelog/_unreleased.toml | 5 +++++ src/slap/ext/application/test.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changelog/_unreleased.toml diff --git a/.changelog/_unreleased.toml b/.changelog/_unreleased.toml new file mode 100644 index 00000000..da98c6f9 --- /dev/null +++ b/.changelog/_unreleased.toml @@ -0,0 +1,5 @@ +[[entries]] +id = "f71eac90-2178-4538-b99b-07b2eae96758" +type = "fix" +description = "Use correct cmd option" +author = "@mcintel" diff --git a/src/slap/ext/application/test.py b/src/slap/ext/application/test.py index dc2dc178..465b38c4 100644 --- a/src/slap/ext/application/test.py +++ b/src/slap/ext/application/test.py @@ -44,7 +44,7 @@ def run(self) -> int: TestRunner._prev_color = color if os.name == "nt": - command = ["cmd", "/k", self.config] + command = ["cmd", "/c", self.config] else: shell = os.getenv("SHELL", "bash") command = [shell, "-c", self.config]