Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

tests: the two bash-driven suites skip on Windows instead of failing against the WSL stub

LOKIca181af15951
diff --git a/tests/test_launcher_secure_ack.py b/tests/test_launcher_secure_ack.py
index 01d7a14e5..a02239e91 100644
--- a/tests/test_launcher_secure_ack.py
+++ b/tests/test_launcher_secure_ack.py
@@ -87,8 +87,9 @@ class SecureAckTest(unittest.TestCase):
self.assertEqual(ps_step(restore), step)
def test_bash_accepts_only_a_whole_returned_line(self):
- if not shutil.which("bash"):
- raise unittest.SkipTest("needs bash")
+ # On Windows shutil.which finds System32ash.exe, the WSL launcher, which fails when no distro is installed.
+ if os.name == "nt" or not shutil.which("bash"):
+ raise unittest.SkipTest("needs bash, which Windows does not ship")
check = bash_check()
for out, mark, accepted in CASES:
with self.subTest(out=out, mark=mark):
diff --git a/tests/test_list_header_commands.py b/tests/test_list_header_commands.py
index 704a1d40a..82d2d206d 100644
--- a/tests/test_list_header_commands.py
+++ b/tests/test_list_header_commands.py
@@ -119,6 +119,7 @@ def undo_problem(path):
return None
[email protected](os.name == "nt", "runs each header's command through bash, which Windows does not ship; CI's Ubuntu runner does")
class HideHeaderTest(unittest.TestCase):
def run_command(self, folder, command):
with tempfile.TemporaryDirectory() as tmp: