Hi Andrew, I got some problems because of the format of '.userconfig'.
In mach_b2g_bootstrap.py [1], we are parsing '.config' and '.userconfig' into key/value pairs and set them into environment. However the format of '.userconfig' is not so simple [2]. Alos, we might use variable expansion, if/else, and also other bash format (take a look for my .userconfig [3]) I suggest not parsing '.userconfig' in python and let it being handled by bash itself. I have some modification for this [4]. The limitation of the solution is that we should use " export KEY=VALUE" so that the newly environment vars could be appeared in the output of 'env'. Any suggestion for this part? [1] https://github.com/mozilla-b2g/B2G/blob/master/tools/mach_b2g_bootstrap.py#L178 [2] https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Customization_with_the_.userconfig_file [3] https://gist.github.com/aknow/6682409 [4] https://gist.github.com/aknow/6681883#file-mach_b2g_bootstrap-py-L178 Best regards, Aknow -- Szu-Yu Chen (Aknow) 陳思佑 Mozilla Taiwan ----- Original Message ----- From: "Andrew Halberstadt" <[email protected]> To: [email protected] Sent: Tuesday, September 17, 2013 2:58:50 AM Subject: [b2g] Mach for b2g emulator unittests Running mochitests/reftests/xpcshell on a B2G emulator has been a bit of a struggle in the past. As of now, if you have an emulator configured and built, you can simply run './mach mochitest-remote' (or ./mach help mochitest-remote for additional arguments). Substitute 'mochitest' with 'reftest', 'crashtest' or 'xpcshell' to run those suites. For more details, see my blog post: http://ahal.ca/blog/2013/running-b2g-unittests-mach/ Don't hesitate to ping me if you have problems or questions. Cheers, Andrew _______________________________________________ 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
