From 118476c7f394487eb8e865d67a5090d8c40b7935 Mon Sep 17 00:00:00 2001 From: voluntas Date: Tue, 3 Sep 2024 22:59:17 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=81=E3=83=A3=E3=83=AC=E3=83=B3=E3=82=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/momo.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/momo.py b/test/momo.py index 797f5000..44d2fc23 100644 --- a/test/momo.py +++ b/test/momo.py @@ -9,6 +9,7 @@ # プラットフォームに応じたリリースディレクトリの設定 RELEASE_DIR = Path(__file__).resolve().parent.parent / Path("_build/") +# TODO: 環境変数で CI か Local で見に行くパスを変えるようにする if platform.system() == "Darwin": if platform.machine() == "arm64": RELEASE_DIR = RELEASE_DIR / "macos_arm64/release/momo" @@ -21,8 +22,9 @@ class Momo: - def __init__(self, port=5000): + def __init__(self, mode="test", port=5000): self.executable = RELEASE_DIR / "momo" + self.mode = mode self.port = port self.process = None self.thread = None @@ -35,11 +37,11 @@ def __exit__(self, exc_type, exc_val, exc_tb): self.stop() def run_app(self): - # test モードでポートだけ指定してあげる args = [ str(self.executable), "--no-audio-device", - "test", + "--no-video-device", + self.mode, "--port", str(self.port), ]