Skip to content

Commit

Permalink
Manager tests fixed, now for agent tests
Browse files Browse the repository at this point in the history
Issue #178
  • Loading branch information
damies13 committed Feb 25, 2024
1 parent a9774ed commit f8d0cd3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Tests/Regression/Agent/ºCommon.robot
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Library OperatingSystem
Library Process
Library DatabaseLibrary
Library String
Library Collections

*** Variables ***
${cmd_agent} rfswarm-agent
Expand All @@ -14,6 +15,7 @@ ${process_manager} None

# datapath: /home/runner/work/rfswarm/rfswarm/rfswarm_manager/results/PreRun
# datapath: /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/rfswarm_manager/results/PreRun -- let's control the output path rather than leaving it to chance
# datapath: /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/rfswarm_manager/PreRun
${results_dir} ${EXECDIR}${/}rfswarm_manager${/}results

*** Keywords ***
Expand All @@ -30,7 +32,7 @@ Run Agent
IF ${options} == None
${options}= Create List
END
Log to console \${options}: ${options}
Log to console ${\n}\${options}: ${options}
# ${process}= Start Process python3 ${pyfile_agent} @{options} alias=Agent stdout=${OUTPUT DIR}${/}stdout_agent.txt stderr=${OUTPUT DIR}${/}stderr_agent.txt
${process}= Start Process ${cmd_agent} @{options} alias=Agent stdout=${OUTPUT DIR}${/}stdout_agent.txt stderr=${OUTPUT DIR}${/}stderr_agent.txt
Set Test Variable $process_agent ${process}
Expand All @@ -40,9 +42,10 @@ Run Manager CLI
IF ${options} == None
${options}= Create List
END
Log to console \${options}: ${options}
Append To List ${options} -d ${results_dir}
Log to console ${\n}\${options}: ${options}
# ${process}= Start Process python3 ${pyfile_manager} @{options} alias=Manager stdout=${OUTPUT DIR}${/}stdout_manager.txt stderr=${OUTPUT DIR}${/}stderr_manager.txt
${process}= Start Process ${cmd_manager} @{options} -d ${results_dir} alias=Manager stdout=${OUTPUT DIR}${/}stdout_manager.txt stderr=${OUTPUT DIR}${/}stderr_manager.txt
${process}= Start Process ${cmd_manager} @{options} alias=Manager stdout=${OUTPUT DIR}${/}stdout_manager.txt stderr=${OUTPUT DIR}${/}stderr_manager.txt
Set Test Variable $process_manager ${process}

Wait For Manager
Expand Down

0 comments on commit f8d0cd3

Please sign in to comment.