Andrew,

thank you ! the BRANCH=master seems to have done the trick.

ian


----- Original Message -----
From: "Andrew Halberstadt" <[email protected]>
To: [email protected]
Sent: Tuesday, April 2, 2013 11:29:33 AM
Subject: Re: [b2g] running mochitests in emulator

Unfortunately I'm also pretty confused by the build system..

You are trying to test this because of a change you're making to m-c 
right? If so, I think you can do:

   rm -rf gecko gaia out objdir-gecko
   BRANCH=master ./config.sh emulator
   ./build.sh

This should set you up with a gaia/gecko that track mozilla-central.

Cheers,
Andrew

On 04/02/2013 12:05 PM, Ian Melven wrote:
>
> Thanks for your help, Andrew !
>
>> It looks like you're hitting the error that bz ran into in
>> https://bugzilla.mozilla.org/show_bug.cgi?id=848133 which got fixed
>> around March 6th. When did you build?
>
> yesterday night, so it seems like i should be good wrt this fix.
>
>> Did you run ./repo sync since
>> then?
>
> possibly. i built the emulator using the standard gecko and
> then tried to build with my custom gecko. i believe i rm'd
> ./out and then used a different objdir and then reran config.sh emulator
> after setting up the .userconfig to point to the custom Gecko
>
>> Is it possible you built a b2g18 version of gaia with a m-c
>> version of gecko?
>
> it's possible since this is all pretty new to me :) My .userconfig contains :
>
>      B2G_DIR=${B2G_DIR:-$(cd $(dirname $0); pwd)}
>      echo "B2G_DIR = ${B2G_DIR}"
>
>      GECKO_PATH=~/src/mozilla-central
>      echo "GECKO_PATH = ${GECKO_PATH}"
>
>      export B2G_DEBUG=1
>
>      export B2G_NOOPT=1
>
>      export NOFTU=1
>
>      GECKO_OBJDIR=${GECKO_PATH}/objdir-gonk-debug
>
> what's the best way to make sure my gaia and gecko are in sync ?
> try rm'ing out and the gecko objdir, rerun config.sh emulator and build.sh 
> again ?
>
> thanks,
> ian
>
>
> On 04/02/2013 11:08 AM, Ian Melven wrote:
>>
>> Hi,
>>
>> i've been trying to run a mochitest in the emulator (ARM) without much luck.
>>
>> i got the emulator running on Ubuntu 12.04 finally (i couldn't get it to 
>> start on 12.10)
>>
>> i built against a local Gecko with my patch including my test applied
>> and the emulator also seems to start up and 'work' normally building against 
>> that.
>>
>> i installed setuputils and ran python setup.py develop in my local Gecko's
>> testing/marionette/client directory.
>>
>> when i try to run my mochitest from 
>> ~/src/mozilla-central/objdir-gonk-dbg/_tests/testing/mochitest using:
>>
>> python runtestsb2g.py --b2g-path ~/src/B2G --xre-path 
>> ~/src/mozilla-central/objdir-dbg/dist/bin/xpcshell
>>     --emulator arm --console-level INFO --test-path 
>> content/base/test_CSP_inlinestyle.html
>>
>> i see :
>>
>> marionette.errors.JavascriptException TypeError: currentAppFrame(...) is 
>> null at app://system.gaiamobile.org/js/wrapper.js line 120
>>
>> and then the python script exits, killing the emulator.
>>
>> any ideas what might be going wrong here ? any help greatly appreciated.
>>
>> thanks,
>> ian
>>
>
>
> _______________________________________________
> dev-b2g mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-b2g
>


_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to