Mozmill error messages

Jonathan Protzenko jonathan.protzenko at gmail.com
Sun Oct 2 15:30:33 UTC 2011


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= \
     
/home/jonathan/Code/objdir-comm-central/./mozilla/_tests/mozmill/../mozmill-virtualenv/bin/python 
runtest.py \
     
--test=/home/jonathan/Code/comm-central/mail/test/mozmill/get-an-account/test-get-an-account.js 
\
     --binary=../../.././mozilla/dist/bin/thunderbird \
     
--symbols-path=/home/jonathan/Code/objdir-comm-central/./mozilla/dist/crashreporter-symbols 
\

Using profile dir: 
/home/jonathan/Code/objdir-comm-central/mozilla/_tests/mozmill/mozmillprofile
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 
[/usr/lib/python2.7/asyncore.py|readwrite|108] 
[/usr/lib/python2.7/asyncore.py|handle_read_event|444] 
[/home/jonathan/Code/objdir-comm-central/mozilla/_tests/mozmill-virtualenv/lib/python2.7/site-packages/jsbridge/network.py|handle_read|94] 
[/home/jonathan/Code/objdir-comm-central/mozilla/_tests/mozmill-virtualenv/lib/python2.7/site-packages/jsbridge/network.py|process_read|255] 
[/home/jonathan/Code/objdir-comm-central/mozilla/_tests/mozmill-virtualenv/lib/python2.7/site-packages/jsbridge/network.py|fire_callbacks|270] 
[/home/jonathan/Code/objdir-comm-central/mozilla/_tests/mozmill-virtualenv/lib/python2.7/site-packages/jsbridge/network.py|fire_event|291] 
[/home/jonathan/Code/objdir-comm-central/mozilla/_tests/mozmill-virtualenv/lib/python2.7/site-packages/mozmill/__init__.py|__call__|97] 
[runtest.py|logFailure|415] 
[/usr/lib/python2.7/json/__init__.py|loads|326] 
[/usr/lib/python2.7/json/decoder.py|decode|366] 
[/usr/lib/python2.7/json/decoder.py|raw_decode|384])
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 :-).

Cheers,

jonathan



More information about the tb-planning mailing list