Mozmill error messages
asutherland at asutherland.org
Sun Oct 2 21:12:31 UTC 2011
I would suggest instrumenting the failure site (the one looking for a
JSON blob) to print the thing it is trying to json.loads() to see what
is actually coming across the wire. While I'm reasonably confident the
fancy pants logging support should not be marshaling non-objects, it's
possible the more recent revisions of mozmill are trying to introspect
things the fancy pants logging is putting in there. Or maybe it's
something different, but that's the best way to answer the question.
On 10/02/2011 08:30 AM, Jonathan Protzenko wrote:
> Hi folks,
> I'm trying to write tests for the account provisioner, and ever since
> we upgraded to in-tree mozmill, every single time I write a test, I'm
> getting errors such as these:
> jonathan at ramona:~/Code/objdir-comm-central $ make
> SOLO_TEST=get-an-account/test-get-an-account.js mozmill-one
> unset PYTHONHOME && cd ./mozilla/_tests/mozmill &&
> MACOSX_DEPLOYMENT_TARGET= \
> runtest.py \
> --binary=../../.././mozilla/dist/bin/thunderbird \
> Using profile dir:
> Warning: unrecognized command line flag -foreground
> error: uncaptured python exception, closing channel
> <jsbridge.network.BackChannel connected 127.0.0.1:24242 at 0x15a6440>
> (<type 'exceptions.ValueError'>:No JSON object could be decoded
> WARNING | endRunner was never called. There must have been a failure
> in the framework.
> Not only is that not particularly helpful, there's nothing I can do to
> figure out the error. Is that a syntax error somewhere? Is it a
> misconfiguration because I added a new directory in mail/test/mozmill?
> I need to blindly, magically figure out where the error is, and this
> is really difficult. Writing tests is already super-painful, and this
> really makes we want to give up.
> Is there anything I'm doing wrong? Am I missing something? Is me setup
> somehow broken?
> Any piece of advice would be highly appreciated :-).
> tb-planning mailing list
> tb-planning at mozilla.org
More information about the tb-planning