Tests: run doctor Bash wrapper only on POSIX

This commit is contained in:
SAPHID committed 2026-10-24 02:55:40 +00:00
1 parent 7f25e87b42
commit 7c061846bd
1 file changed
+4 -2
+4 -2
View File
@@ -106,8 +106,10 @@ class FrameDoctor(unittest.TestCase):
self.assertEqual(doctor.report(data), 1)
def test_help_shell_entry_point_is_offline(self):
# Bash is optional on Windows test runners; the Python CLI is portable.
import shutil
# This Bash wrapper is for macOS/Linux; Windows uses the Python CLI.
import os, shutil
if os.name == 'nt':
self.skipTest('POSIX shell wrapper')
if not shutil.which('bash'):
self.skipTest('bash unavailable')
r = subprocess.run(['bash', str(ROOT / 'scripts/frame-doctor.sh'), '--help'],