mirror of
https://github.com/saphid/frame-control.git
synced 2026-10-24 10:02:26 +02:00
Tests: run doctor Bash wrapper only on POSIX
This commit is contained in:
1 parent
7f25e87b42
commit
7c061846bd
1 file changed
+4
-2
@@ -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'],
|
||||
|
||||
Reference in new issue
Block a user