Closed Bug 840852 Opened 11 years ago Closed 11 years ago

Script to update SUTAgent.ini

Categories

(Testing :: Mozbase, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mcote, Unassigned)

Details

Attachments

(2 files)

I seem to have to update SUTAgent.ini on devices very frequently.  Autophone has a script that writes a local SUTAgent.ini to the correct place on a remote device, but I'd love a script that automatically fetches SUTAgent.ini, prompts for changes (defaulting to current values), and uploads the new file (if changed).
Straightforward, hope it's useful to others as well.
Attachment #713278 - Flags: review?(bclary)
Attachment #713278 - Flags: feedback?(wlachance)
Comment on attachment 713278 [details] [diff] [review]
Interactive script to update SUTAgent.ini on remote device

r+, nice for real this time.
Attachment #713278 - Flags: review?(bclary) → review+
Comment on attachment 713278 [details] [diff] [review]
Interactive script to update SUTAgent.ini on remote device

nice
Attachment #713278 - Flags: feedback?(wlachance) → feedback+
https://github.com/mozilla/mozbase/commit/719c25ffa3a0b9685f52d1fb33298962beb084dc

I will add support for network settings before closing this, since I believe I'll have to update them on the phones from haxxor.
yeah, i realized that while unpacking the haxxor phones. :-( sorry for not catching it sooner.
Hummed and hawed a bit about this one, but in the end decided to keep it simple.  I also added the ability to delete sections.

Looking at the SUTAgent code, it seems that the Network Settings options are really limited.  Seems it was rewritten at some point, and some of the old settings are now ignored.  I'll update https://wiki.mozilla.org/Auto-tools/Projects/SUTAgent accordingly.
Attachment #713663 - Flags: review?(bclary)
Comment on attachment 713663 [details] [diff] [review]
Add ability to update Network Settings section

wfm.

Do we have docs on the meaning of the SUTAgent.ini settings?
Attachment #713663 - Flags: review?(bclary) → review+
Actually, we need to add some more to the network section:

http://dxr.mozilla.org/mozilla-central/build/mobile/sutagent/android/SUTAgentAndroid.java#l509

we need key an adhoc whatever they are.

ctalbert, do you know the meaning of these values?
As discussed a lot of those options don't actually do anything anymore.  I'll update the SUTAgent wiki page presently.

https://github.com/mozilla/mozbase/commit/9459b2beaa1eca59ad10aa8e9281afe966a5684e
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: