Closed Bug 1723599 Opened 3 years ago Closed 3 years ago

mach mochitest fails on mobile environments

Categories

(Firefox Build System :: Mach Core, defect)

defect

Tracking

(firefox-esr78 unaffected, firefox-esr91 unaffected, firefox90 unaffected, firefox91 unaffected, firefox92 fixed)

RESOLVED FIXED
92 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- unaffected
firefox90 --- unaffected
firefox91 --- unaffected
firefox92 --- fixed

People

(Reporter: hiro, Assigned: mhentges)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

The details of the failure are as follows:

NameError: name 'command_context' is not defined

File "/home/hiro/android/testing/mochitest/mach_commands.py", line 511, in run_mochitest_general
result = run_mochitest(
File "/home/hiro/android/testing/mochitest/mach_commands.py", line 168, in run_android_test
kwargs["adbPath"] = get_adb_path(command_context)

No longer blocks: 1696251
Regressed by: 1696251
Has Regression Range: --- → yes

Pass command_context through for use with get_adb_path().
No longer passes through mach_context because it was unused.

Assignee: nobody → mhentges
Status: NEW → ASSIGNED

Thanks for the report! 👍

Pushed by mhentges@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/558bc5e83477 Fix `./mach mochitest` for android r=firefox-build-system-reviewers,nalexander

Thank for the quick fix!

Though I am not sure this is an issue on my end, with the change mochitest seems to be started but it doesn't actually start it?

A log is;

 0:19.65 INFO SimpleTest START
 0:19.65 TEST_START: dom/events/test/test_coalesce_touchmove.html
 0:41.35 INFO wait for org.mozilla.geckoview.test complete; top activity=com.android.launcher3
 0:41.35 INFO runtestsremote.py | Application ran for: 0:00:23.433764
 0:41.40 INFO Stopping web server
 0:41.40 INFO Server shut down.
 0:41.42 INFO Web server killed.
 0:41.42 INFO Stopping web socket server
 0:41.44 INFO Stopping ssltunnel
 0:41.46 WARNING leakcheck | refcount logging is off, so leaks can't be detected!
 0:41.46 INFO runtests.py | Running tests: end.
 0:41.57 INFO Buffered messages finished

Should I open a new bug?

CCing Agi.

Never mind! I have to specify --enable-webrender explicitly, with the option I can run mochitest properly. Thanks!

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: