Added host orchestrator endpoint for cvd restart#2088
Open
SuperStrongDinosaur wants to merge 3 commits intogoogle:mainfrom
Open
Added host orchestrator endpoint for cvd restart#2088SuperStrongDinosaur wants to merge 3 commits intogoogle:mainfrom
SuperStrongDinosaur wants to merge 3 commits intogoogle:mainfrom
Conversation
daa0e48 to
31685a9
Compare
a8e5e1f to
bbdd825
Compare
ser-io
requested changes
Mar 17, 2026
Member
ser-io
left a comment
There was a problem hiding this comment.
Please add e2e test to this PR. Example: https://github.com/google/android-cuttlefish/blob/main/e2etests/orchestration/powerbtn_test
auto-merge was automatically disabled
March 18, 2026 12:13
Head branch was pushed to by a user without write access
bbdd825 to
a41c891
Compare
ser-io
requested changes
Mar 18, 2026
a41c891 to
204e12d
Compare
204e12d to
f9bf682
Compare
ser-io
requested changes
Mar 19, 2026
| if err != nil { | ||
| t.Fatal(err) | ||
| } | ||
| if uptime > 120 { |
Member
There was a problem hiding this comment.
If we didn't restart the device uptime > 120 will still be true.
adb shell uptime -s gives you a timestamp for when the system was started.
cvd create
adb shell uptime -s --> 2026-03-19 15:34:46
wait 1 second
cvd restart
adb shell uptime -s --> 2026-03-19 15:34:59
Now we can assert that if the difference between the 1st and 2nd timestamp is more than 1 second the device was indeed restarted.
f9bf682 to
2cc2e00
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
b/478814714