Skip to content

Commit

Permalink
Revert "redirect"
Browse files Browse the repository at this point in the history
This reverts commit f3ceaaa.
  • Loading branch information
evgeni committed Nov 22, 2024
1 parent f3ceaaa commit 8059901
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tests/foreman/sys/test_fam.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
"""

from pathlib import Path

from broker import Broker
import pytest
import yaml
Expand Down Expand Up @@ -192,12 +190,6 @@ def test_positive_run_modules_and_roles(module_target_sat, setup_fam, ansible_mo

# Execute test_playbook
result = module_target_sat.execute(
f'NO_COLOR=1 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 make --directory {FAM_ROOT_DIR} livetest_{ansible_module} PYTHON_COMMAND="python3" PYTEST_COMMAND="pytest-3.11" >/tmp/pytest .stdout 2>/tmp/pytest.stderr'
f'NO_COLOR=1 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 make --directory {FAM_ROOT_DIR} livetest_{ansible_module} PYTHON_COMMAND="python3" PYTEST_COMMAND="pytest-3.11"'
)
module_target_sat.get('/tmp/pytest.stdout', 'pytest.stdout')
module_target_sat.get('/tmp/pytest.stderr', 'pytest.stderr')

stdout = Path('pytest.stdout').read_text()
stderr = Path('pytest.stderr').read_text()

assert result.status == 0, f"{result.status=}\n{stdout=}\n{stderr=}"
assert result.status == 0, f"{result.status=}\n{result.stdout=}\n{result.stderr=}"

0 comments on commit 8059901

Please sign in to comment.