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 d18969d commit 38fb76cCopy full SHA for 38fb76c
tests/pytests/functional/modules/test_mac_assistive.py
@@ -4,6 +4,8 @@
4
5
import pytest
6
7
+from salt.exceptions import CommandExecutionError
8
+
9
pytestmark = [
10
pytest.mark.destructive_test,
11
pytest.mark.skip_if_not_root,
@@ -23,7 +25,11 @@ def osa_script():
23
25
24
26
@pytest.fixture(scope="function", autouse=True)
27
def _setup_teardown_vars(assistive, osa_script):
- assistive.install(osa_script, True)
28
+ try:
29
+ ret = assistive.install(osa_script, True)
30
+ except CommandExecutionError as exc:
31
+ pytest.skip(f"Unable to install {osa_script} - {str(exc.value)}")
32
33
try:
34
yield
35
finally:
0 commit comments