We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c95b57 commit 8681cd4Copy full SHA for 8681cd4
tests/conftest.py
@@ -1,6 +1,7 @@
1
import argparse
2
import logging.config
3
import os
4
+import platform
5
import shutil
6
import subprocess
7
import time
@@ -31,7 +32,13 @@
31
32
33
# Install the socat package if running as a Github Action.
34
if os.getenv("GITHUB_ACTIONS"):
- subprocess.run("sudo apt-get install socat".split(), check=True)
35
+ osname = platform.system()
36
+ if osname == "Linux":
37
+ subprocess.run("sudo apt-get install socat".split(), check=True)
38
+ elif osname == "Darwin":
39
+ subprocess.run("brew install socat".split(), check=True)
40
+ elif osname == "Windows":
41
+ raise RuntimeError("socat is not supported on Windows.")
42
43
44
def pytest_addoption(parser: argparse.Namespace) -> None:
0 commit comments