From 80599016418e3c513179d1469d42c6c4af9c0be3 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 22 Nov 2024 08:11:51 +0100 Subject: [PATCH] Revert "redirect" This reverts commit f3ceaaab366fb0c00a50e1ca9c1ae6e577a94175. --- tests/foreman/sys/test_fam.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/tests/foreman/sys/test_fam.py b/tests/foreman/sys/test_fam.py index fc59ac1a8b..886394f6a8 100644 --- a/tests/foreman/sys/test_fam.py +++ b/tests/foreman/sys/test_fam.py @@ -12,8 +12,6 @@ """ -from pathlib import Path - from broker import Broker import pytest import yaml @@ -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=}"