Closed Bug 789086 Opened 12 years ago Closed 12 years ago

mochitest/runtestsremote.py uses fixed name robotium.config file

Categories

(Testing :: Mochitest, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla18

People

(Reporter: bc, Assigned: bc)

References

()

Details

Attachments

(1 file)

fHandle = open("robotium.config", "w") fHandle.write("profile=%s\n" % (mochitest.remoteProfile)) fHandle.write("logfile=%s\n" % (options.remoteLogFile)) fHandle.write("host=http://mochi.test:8888/tests\n") fHandle.write("rawhost=http://%s:%s/tests\n" % (options.remoteWebServer, options.httpPort)) fHandle.close() When running multiple instances of runtestsremote.py under Autophone it is possible to get a conflict with robotium.config. Generating a unique temporary name, or creating one based on the ip address and port, or specifying one via a command line option will allow us to eliminate the possible collision. Thoughts?
we need the name 'robotium.config' on the device, not necessary on the host. some options I can think of: 1) create a tmp file and push it to /mnt/sdcard/robotium.config 2) use unique directories for each machine under test (this is what the foopies do) 3) all of the above.
Attached patch patchSplinter Review
Attachment #664069 - Flags: review?(jmaher)
Attachment #664069 - Flags: review?(jmaher) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: