-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Samuli Leivo <[email protected]>
- Loading branch information
1 parent
d3d82e0
commit b715d12
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# SPDX-FileCopyrightText: 2022-2024 Technology Innovation Institute (TII) | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
*** Settings *** | ||
Resource ../config/variables.robot | ||
|
||
|
||
*** Keywords *** | ||
|
||
Start power measurement | ||
[Documentation] Connect to the measurement agent and run script to start collecting measurement results | ||
[Arguments] ${build_id}=power_data | ||
Connect to measurememnt agent | ||
Start recording power | ||
|
||
Connect to measurememnt agent | ||
[Documentation] Set up SSH connection | ||
[Arguments] ${IP}=${MEAS_IP_ADDRESS} ${PORT}=22 ${target_output}=ghaf@raspberrypi | ||
${connection}= Open Connection ${IP} port=${PORT} prompt=\$ timeout=15 | ||
${output}= Login username=${LOGIN_PI} password=${PASSWORD_PI} | ||
Should Contain ${output} ${target_output} | ||
RETURN ${connection} | ||
|
||
Start recording power | ||
Run Keyword And Ignore Error Execute Command -b python ~/ghaf/ghaf-power-meas/measure_power.py timeout=3 |