Run daemon communication tests only on Linux

For some reason, the CI runs on Github Actions block the macOS runners,
and they take forever to run the tests. The tests are really needed only
on Linux, and the errno values that it uses are only verified to work on
Linux.
reverse-scroll
nirenjan 2022-04-08 00:26:44 -07:00
parent c87c7caa68
commit 527d4d5a1e
1 changed files with 6 additions and 0 deletions

View File

@ -4,6 +4,7 @@
import glob
import os
import os.path
import platform
import shlex
import signal
import socket
@ -173,6 +174,11 @@ class Test:
def main():
"""Main routine adds test cases to the Test class and runs them"""
# Only run the tests on Linux platform
if platform.system() != 'Linux':
print('1..0 # Skipping tests on', platform.system())
return
with Test() as test:
test.find_and_parse_testcase_files()
test.run_tests()