Closed Bug 909941 Opened 12 years ago Closed 11 years ago

Write python script to drive AWSY endurance tests on the B2G emulator

Categories

(Testing :: AWSY, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rwood, Assigned: rwood)

References

Details

Write a python script to drive the AWSY memory leak (orangutan) endurance tests on the B2G emulator, and perform about_memory checkpoints. Specify number of iterations, etc. on command line. Script to be called from Jenkins. This script will only drive the tests, it won't do anything with the resulting about-memory reports.
See awsy.py in my github repo: https://github.com/rwood-moz/awsy I'm not sure how to put that script up for review, do I attach it here (and ask for a R?) even though it is in github?
Flags: needinfo?(jgriffin)
We don't have a set procedure for asking for review for a new github repo; I think you can just needinfo me for the first round, which you've already one.
Review comments: Should probably be consistent with exit(1) vs sys.exit(1). > https://github.com/rwood-moz/awsy/blob/master/awsy.py#L91 I assume this should be 'adb rm' and not just 'rm'. We should really use mozprocess for managing the emulator process, instead of os.system and 'ps'. But I wouldn't block on that; I think that could be changed transparently at a later date. What we really want is a mozemulator class that could be used by Marionette, these tests, and whatever else needs or wants to launch and manage emulators. But that's for another bug...
Flags: needinfo?(jgriffin)
Changes were made to the script awhile back according to the review comments, and it is up and running now.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Component: General → AWSY
You need to log in before you can comment on or make changes to this bug.