Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test case to test the different update strategies. #67

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
r/resinos.robot: Adding keyword that sends commands to the device.
Signed-off-by: Horia Delicoti <horia.delicoti@gmail.com>
horia-delicoti authored and Praneeth committed Mar 29, 2017
commit c7fab344ae9350730889c36ddaadefd43e6857bb
7 changes: 7 additions & 0 deletions resources/resinos.robot
Original file line number Diff line number Diff line change
@@ -86,6 +86,13 @@ Check if service "${service}" is running using socket "${socket}"
Should Contain ${result.stdout} active
Process ${result}

Run command "${command}" on device using socket "${socket}"
${result} = Run Process echo "send root\nsend ${command}" > minicom_script.sh shell=yes cwd=/tmp/enable_getty_service
Process ${result}
Run Process minicom -D ${socket} -S /tmp/enable_getty_service/minicom_script.sh -C /tmp/enable_getty_service/minicom_output.txt shell=yes cwd=/tmp timeout=1s
File Should Not Be Empty /tmp/enable_getty_service/minicom_output.txt
Process ${result}

Check that backup files are not found in the "${image}"
${LOOPDEVICE} = Set up loop device for "${image}"
${random} = Evaluate random.randint(0, sys.maxint) modules=random, sys