Hi Gabriele,
I think, in order to support your use case, we'd need to modify the
testrunner to explicitly know how to run these on devices (rather than
emulators), which would involve restarting B2G before running the tests
so we could prevent a full load of Gaia.
If you'd like this, please ticket it under Testing:Marionette.
Jonathan
On 6/14/13 12:59 PM, Gabriele Svelto wrote:
Hello Jonathan,
> Can you file a bug about moznetwork.get_ip() not working correctly, so
we can figure out what the problem is and fix it? You can use a
component of Testing:Mozbase.
I've investigated that part a bit an I'm not sure if it's a bug or a
feature. What's happening is that moznetwork.get_ip() is trying to
resolve my hostname and I'm in a network using OpenDNS for DNS
resolution; this is causing the query for my hostname to return the
address of their redirection page instead of a failure. The script
then tries to bind a socket to that address and fails.
I'm not sure why this was chosen over binding the web server to the
wildcard address, maybe to play nice with multi-homed hosts? Anyway
I've switched to another DNS and the problem's gone.
Regarding the other problem, the key lines of the log are this:
[snip]
It looks like the test is dying somewhere inside testImportSimContacts.
The AsyncChannel error might be relevant.
That usually shows up when a content process is killed in B2G and
pending IPC messages from the parent are lost.
When we run this on an emulator (as we do in TBPL), we run it without
Gaia fully loaded, since this is a test of a WebAPI, and we don't want
Gaia to interfere; on a device, that wouldn't be true, and the test may
cause Gaia interactions that would break the test. Can you run the test
on an emulator, and does it pass in that environment?
Of course, I'll try that ASAP. However since I'm working on FDN
functionality I hoped to add that functionality to the unit test and
run it on the actual hardware to make sure everything works correctly
with an actual SIM card. If it's not possible I'll just develop a
small test application instead (though I'll still add the extra checks
to the unit test).
Gabriele
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g