Skip to content

Commit

Permalink
simplify FAM test command (#16980)
Browse files Browse the repository at this point in the history
- we don't need to export vars, setting them should be sufficient
- make can change directories for us, no need to cd
  • Loading branch information
evgeni authored Nov 22, 2024
1 parent b24d3d4 commit fefe1ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/foreman/sys/test_fam.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def test_positive_run_modules_and_roles(module_target_sat, setup_fam, ansible_mo

# Execute test_playbook
result = module_target_sat.execute(
f'export NO_COLOR=True && export PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 && cd {FAM_ROOT_DIR} && make livetest_{ansible_module} PYTHON_COMMAND="python3" PYTEST_COMMAND="pytest-3.11"'
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"'
)
assert 'PASSED' in result.stdout
assert result.status == 0

0 comments on commit fefe1ea

Please sign in to comment.