Files
cleveragents-core/robot/version_test.robot
freemo 069b43233c fix(test-infra): remove redundant ${PYTHON} variable definitions from robot files
Remove the local ${PYTHON}    python (and python3) variable definitions from
the *** Variables *** sections of all affected robot files. These local
definitions were overriding the pabot-injected venv Python path passed via
--variable PYTHON:/path/to/venv/python, causing tests to use the system
Python (which lacks required packages like structlog, sqlalchemy, etc.)
instead of the nox venv Python.

The correct ${PYTHON} value is already set by Setup Test Environment in
common.resource via sys.executable, and pabot passes it via --variable.
The local fallback definitions are redundant and harmful in parallel runs.

Audit found 56 robot files with the pattern (more than the 9 originally
identified in the issue). All occurrences have been removed.

ISSUES CLOSED: #1309
2026-04-05 07:42:02 +00:00

29 lines
1.4 KiB
Plaintext

*** Settings ***
Documentation Integration test for cleveragents CLI
Library Process
Library OperatingSystem
Resource ${CURDIR}/v2_paths.resource
*** Test Cases ***
Check CleverAgents Version Command
[Documentation] Test that cleveragents --version returns the correct version
${result} = Run Process ${PYTHON} -m cleveragents --version timeout=120s on_timeout=kill
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} CleverAgents 1.0.0
Check CleverAgents Version Command Stderr
[Documentation] Ensure version command doesn't produce errors on stderr
${result} = Run Process ${PYTHON} -m cleveragents --version timeout=120s on_timeout=kill
Should Be Empty ${result.stderr}
Check CleverAgents Help Command
[Documentation] Test that cleveragents --help works correctly
${result} = Run Process ${PYTHON} -m cleveragents --help timeout=120s on_timeout=kill
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} Usage:
Check CleverAgents Invalid Command
[Documentation] Test that invalid commands return appropriate error code
${result} = Run Process ${PYTHON} -m cleveragents --invalid-option timeout=120s on_timeout=kill
Should Not Be Equal As Integers ${result.rc} 0