Closed Bug 876524 Opened 8 years ago Closed 8 years ago

Add sutuptimems command to sutagent

Categories

(Testing Graveyard :: SUTAgent, defect)

x86
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla24

People

(Reporter: gbrown, Assigned: gbrown)

Details

Attachments

(1 file)

Bug 777331 added an "uptimems" command to sutAgent which reports the system uptime -- how long it has been since Android was booted.

In some bugs, I find myself just as interested in how long sutAgent itself has been running. For most test runs, we reboot the tegra or panda first, expect sutAgent to be started automatically by the Watcher just after boot time, and then start communicating with sutAgent. A significant difference between uptimems and sutuptimems would indicate instability in the sutAgent (perhaps it is being killed by the system due to low memory conditions, or maybe it is crashing).
Example:

$>info uptimemillis
586455
$>info sutuptimemillis
SUTagent running for 329653 ms
$>info    
B4:07:F9:F2:B5:D6
FROYO.XXJPU
2013/05/27 03:22:26:454
0 days 0 hours 10 minutes 2 seconds 966 ms
602967
SUTagent running for 337456 ms
X:480 Y:800
ROTATION:0
...
Adds command as illustrated in Comment 1.
Attachment #754596 - Flags: review?(jmaher)
...and bumps sutAgent version to 1.18.
Comment on attachment 754596 [details] [diff] [review]
add sutuptimemillis info command

Review of attachment 754596 [details] [diff] [review]:
-----------------------------------------------------------------

looks good.  How do you envision this working?  Will you have to modify the harnesses to print this out?  We will need to work with releng to deploy a new 1.18 agent.
Attachment #754596 - Flags: review?(jmaher) → review+
(In reply to Joel Maher (:jmaher) from comment #4)
> looks good.  How do you envision this working?  Will you have to modify the
> harnesses to print this out?  

Both mochitests and reftests dump the output of the full "info" command at the start of a test. That's good enough for me, at least for now -- no harness changes planned.
https://hg.mozilla.org/mozilla-central/rev/9d5e59906951
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.