From b48349e82fe9f82c1eabbe94738feab520b405de Mon Sep 17 00:00:00 2001 From: Chidi Williams Date: Thu, 14 Mar 2024 16:38:24 +0000 Subject: [PATCH] test: skip cli test for linux --- tests/cli_test.py | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/tests/cli_test.py b/tests/cli_test.py index 9591764e52..1d8b909245 100644 --- a/tests/cli_test.py +++ b/tests/cli_test.py @@ -1,4 +1,5 @@ import os +import sys from tempfile import mkdtemp import pytest @@ -12,18 +13,23 @@ class TestCLI: @pytest.mark.parametrize( "qapp_args", [ - [ - "main.py", - "add", - "--task", - "transcribe", - "--model-size", - "small", - "--output-directory", - mkdtemp(), - "--txt", - test_audio_path, - ] + pytest.param( + [ + "main.py", + "add", + "--task", + "transcribe", + "--model-size", + "small", + "--output-directory", + mkdtemp(), + "--txt", + test_audio_path, + ], + marks=pytest.mark.skipif( + sys.platform == "linux", reason="Skip on Linux" + ), + ) ], indirect=True, )