Closed
Bug 1216507
Opened 10 years ago
Closed 10 years ago
Cannot launch xpcshell tests on B2G Emualtor-x86-kk: DMError: zip not available
Categories
(Testing :: XPCShell Harness, defect)
Tracking
(firefox44 fixed)
RESOLVED
FIXED
mozilla44
| Tracking | Status | |
|---|---|---|
| firefox44 | --- | fixed |
People
(Reporter: _AtilA_, Assigned: edgar)
Details
Attachments
(1 file)
I wanted to test some .jsm modules I'm doing, so I need xpcshell tests to run locally in my emulator-x86-kk build.
If you build the emulator and try to launch the test via:
$ cd B2G
$ ./mach xpcshell-test b2g/components/test/unit/test_mycomponent.js
You finally got an error message like:
...
pushing /system/bin/busybox
Error running mach:
...
...
The details of the failure are as follows:
DMError: zip not available
...
(stack trace)
I saw that this process is trying to install busybox (for zip/unzipping the tests) from a prebuilt binary that is built for ARM, but we need a prebuilt for x86 arch.
This is the reason why it's failing.
As a workaround, you can download the prebuilt binary for x86 [1] and overwrite the one in B2G/out/target/product/generic/system/bin/busybox, then launch the mach xpcshell-test commmand again.
[1] http://busybox.net/downloads/binaries/latest/busybox-i686
| Assignee | ||
Comment 1•10 years ago
|
||
I also noticed this. It is caused by some logic error in mach script: use the wrong arch type to download the busybox binary. I already have a patch for this. Will attach soon.
| Assignee | ||
Comment 2•10 years ago
|
||
Bug 1216507 - Use the correct busybox binary for x86 emulator
| Assignee | ||
Updated•10 years ago
|
Component: Emulator → XPCShell Harness
Product: Firefox OS → Testing
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → echen
| Assignee | ||
Comment 3•10 years ago
|
||
Comment on attachment 8676731 [details]
MozReview Request: Bug 1216507 - Use the correct busybox binary for x86 emulator
Bug 1216507 - Use the correct busybox binary for x86 emulator
Attachment #8676731 -
Flags: review?(ahalberstadt)
Comment 4•10 years ago
|
||
Comment on attachment 8676731 [details]
MozReview Request: Bug 1216507 - Use the correct busybox binary for x86 emulator
https://reviewboard.mozilla.org/r/22795/#review20363
Good catch!
Attachment #8676731 -
Flags: review?(ahalberstadt) → review+
| Assignee | ||
Comment 5•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in
before you can comment on or make changes to this bug.
Description
•