Failure with cfx testall with sdk 0.5 and error for cfx testall with sdk 0.6

16 views
Skip to first unread message

Brian

unread,
Jul 27, 2010, 1:47:33 PM7/27/10
to mozilla-labs-jetpack
I'm using Ubuntu 10.04 with Python 2.6 installed and with attempts at
using 0.5 and 0.6 both returning errors when I call cfx testall.
I'm just starting with Jetpack so I realize it could be my own human
error and would like help to know where I'm going wrong.
Heres what I get for sdk 0.5

.........................................F.......
======================================================================
FAIL: Doctest: xpi.md
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.6/doctest.py", line 2152, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for xpi.md
File "/home/user/jetpack-sdk-0.5/static-files/md/dev-guide/xpi.md",
line 0

----------------------------------------------------------------------
File "/home/user/jetpack-sdk-0.5/static-files/md/dev-guide/xpi.md",
line 18, in xpi.md
Failed example:
document_dir('packages')
Differences (unified diff with -expected +actual):
@@ -1,9 +1,24 @@
+barbeque/package.json:
+ {
+ "description": "A package used by 'aardvark' as a library."
+ }
+barbeque/lib/bar-module.js:
+ exports.add = function add(a, b) {
+ return a + b;
+ };
+jetpack-core/package.json:
+ {
+ "description": "A foundational package that provides a
CommonJS module loader implementation.",
+ "loader": "lib/loader.js"
+ }
+jetpack-core/lib/loader.js:
+ // This module will be imported by the XPCOM harness/
boostrapper
+ // via Components.utils.import() and is responsible for
creating a
+ // CommonJS module loader.
aardvark/package.json:
{
- "description": "A package w/ a main module; can be built into
- an extension.",
+ "description": "A package w/ a main module; can be built into
an extension.",
"dependencies": ["jetpack-core", "barbeque"]
}
-<BLANKLINE>
aardvark/lib/main.js:
exports.main = function(options, callbacks) {
@@ -11,24 +26,2 @@
callbacks.quit();
};
-<BLANKLINE>
-barbeque/package.json:
- {
- "description": "A package used by 'aardvark' as a library."
- }
-<BLANKLINE>
-barbeque/lib/bar-module.js:
- exports.add = function add(a, b) {
- return a + b;
- };
-<BLANKLINE>
-jetpack-core/package.json:
- {
- "description": "A foundational package that provides a
CommonJS
- module loader implementation.",
- "loader": "lib/loader.js"
- }
-<BLANKLINE>
-jetpack-core/lib/loader.js:
- // This module will be imported by the XPCOM harness/
boostrapper
- // via Components.utils.import() and is responsible for
creating a
- // CommonJS module loader.


----------------------------------------------------------------------
Ran 49 tests in 3.170s

FAILED (failures=1)
Testing reading-data...
Traceback (most recent call last):
File "resource://reading-data-jetpack-core-lib/text-streams.js",
line 40, in null
Components.utils.import("resource://gre/modules/NetUtil.jsm");
[Exception... "Component returned failure code: 0x80520012
(NS_ERROR_FILE_NOT_FOUND) [nsIXPCComponents_Utils.import]" nsresult:
"0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame ::
file:///home/user/jetpack-sdk-0.5/packages/jetpack-core/lib/securable-module.js
-> resource://reading-data-jetpack-core-lib/text-streams.js ::
<TOP_LEVEL> :: line 40" data: no]
No tests were run
FAIL
Total time: 1.132044 seconds
Program terminated unsuccessfully.
Testing all available packages: nsjetpack, test-harness, jetpack-core,
development-mode.
Traceback (most recent call last):
File "resource://testpkgs-jetpack-core-lib/text-streams.js", line
40, in null
Components.utils.import("resource://gre/modules/NetUtil.jsm");
[Exception... "Component returned failure code: 0x80520012
(NS_ERROR_FILE_NOT_FOUND) [nsIXPCComponents_Utils.import]" nsresult:
"0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame ::
file:///home/user/jetpack-sdk-0.5/packages/jetpack-core/lib/securable-module.js
-> resource://testpkgs-jetpack-core-lib/text-streams.js ::
<TOP_LEVEL> :: line 40" data: no]
No tests were run
FAIL

And for sdk 0.6 I get an error similar to bug 568165 which was for 0.5
sdk

Thanks Brian

Drew

unread,
Jul 28, 2010, 6:24:01 AM7/28/10
to mozilla-la...@googlegroups.com
Hi Brian,

Could you paste the output you get with 0.6, including the command line
you run? Bug 568165 shouldn't have affected Python 2.6 support.

Drew

Brian

unread,
Jul 28, 2010, 10:12:05 AM7/28/10
to mozilla-labs-jetpack
Sorry about that I was using a different rc I retried it with 0.6 rc 2
and got;
user@computer:~$ cd jetpack-sdk-0.6
user@computer:~/jetpack-sdk-0.6$ source bin/activate
Welcome to the Jetpack SDK. Run 'cfx docs' for assistance.
(jetpack-sdk-0.6)user@computer:~/jetpack-sdk-0.6$ cfx testall
Testing cfx...
.........................................................
----------------------------------------------------------------------
Ran 57 tests in 3.488s

OK
Testing reading-data...
Using binary at '/usr/bin/xulrunner'.
Using profile at '/tmp/tmpND6tnl.mozrunner'.
Traceback (most recent call last):
File "resource://reading-data-jetpack-core-lib/text-streams.js",
line 42, in null
Cu.import("resource://gre/modules/NetUtil.jsm", NetUtil);
[Exception... "Component returned failure code: 0x80520012
(NS_ERROR_FILE_NOT_FOUND) [nsIXPCComponents_Utils.import]" nsresult:
"0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame ::
file:///home/user/jetpack-sdk-0.6/packages/jetpack-core/lib/securable-module.js
-> resource://reading-data-jetpack-core-lib/text-streams.js ::
<TOP_LEVEL> :: line 42" data: no]
No tests were run
FAIL
Total time: 1.274888 seconds
Program terminated unsuccessfully.
Testing all available packages: nsjetpack, test-harness, jetpack-core,
development-mode.
Using binary at '/usr/bin/xulrunner'.
Using profile at '/tmp/tmpQ4VqrV.mozrunner'.
Traceback (most recent call last):
File "resource://testpkgs-jetpack-core-lib/text-streams.js", line
42, in null
Cu.import("resource://gre/modules/NetUtil.jsm", NetUtil);
[Exception... "Component returned failure code: 0x80520012
(NS_ERROR_FILE_NOT_FOUND) [nsIXPCComponents_Utils.import]" nsresult:
"0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame ::
file:///home/user/jetpack-sdk-0.6/packages/jetpack-core/lib/securable-module.js
-> resource://testpkgs-jetpack-core-lib/text-streams.js ::
<TOP_LEVEL> :: line 42" data: no]
No tests were run
FAIL
Total time: 1.141884 seconds
Program terminated unsuccessfully.
Some tests were unsuccessful.

Drew

unread,
Jul 28, 2010, 12:25:12 PM7/28/10
to mozilla-la...@googlegroups.com
It looks like you have a standalone XULRunner binary on your system. I
bet it's an old version. The SDK needs Gecko 1.9.2 or later. (The
NetUtil.jsm module mentioned in the errors was introduced in 1.9.2.)

If you run cfx with the --binary (or -b) option pointed at a recent
XULRunner or Firefox, these errors should go away.

cfx -b /path/to/recent/firefox/or/xulrunner/binary testall

This is a bug in cfx actually. It shouldn't try to run with an old
XULRunner.

Drew

Brian

unread,
Jul 29, 2010, 8:00:29 AM7/29/10
to mozilla-labs-jetpack
Thank you for your help on this Drew, I'm busy with some other work
today but
I'll let you know how it goes once I test this out properly.

Brian

Dietrich Ayala

unread,
Aug 3, 2010, 3:49:05 AM8/3/10
to mozilla-la...@googlegroups.com
Drew, did you file a bug on this, or is there one already filed?

> --
> You received this message because you are subscribed to the Google Groups
> "mozilla-labs-jetpack" group.
> To post to this group, send email to mozilla-la...@googlegroups.com.
> To unsubscribe from this group, send email to
> mozilla-labs-jet...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mozilla-labs-jetpack?hl=en.
>
>

Drew

unread,
Aug 3, 2010, 3:51:41 AM8/3/10
to mozilla-la...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages