Failed running mochitest on device, runtestsb2g.py raises exceptions

RESOLVED INVALID

Status

RESOLVED INVALID
4 years ago
10 months ago

People

(Reporter: ting, Unassigned)

Tracking

Trunk
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
I followed the steps at https://developer.mozilla.org/en-US/Firefox_OS/Platform/Automated_testing/Mochitests to run mochitest on Flame:

1. $ source objdir-gecko/_virtualenv/bin/activate
2. $ adb forward tcp:2828 tcp:2828
3. $ cd objdir-gecko/_tests/testing/mochitest; python runtestsb2g.py --b2gpath /home/ting/w/fx/os/flame --xre-path /home/ting/w/fx/os/b2g-desktop-35.0a1 --console-level INFO --httpd-path ./ --test-path content/base/test/test_bug894874.html

But I got:

  runtestsb2g.py | Running tests: start.
  Traceback (most recent call last):
    File "runtestsb2g.py", line 148, in run_tests
      self.app_ctx = self.runner.app_ctx
  AttributeError: 'NoneType' object has no attribute 'app_ctx'
  0 ERROR Automation Error: Received unexpected exception while running application

  Automation Error: Exception caught while running tests
  Traceback (most recent call last):
    File "runtestsb2g.py", line 368, in run_remote_mochitests
      retVal = mochitest.run_tests(options)
    File "runtestsb2g.py", line 214, in run_tests
      self.runner.check_for_crashes()
  AttributeError: 'NoneType' object has no attribute 'check_for_crashes'
  1 ERROR Got suite_end message before suite_start.

The same steps worked with b2g v2.0, didn't check v2.1.
(Reporter)

Updated

4 years ago
Component: General → Mochitest
Mass resolving of B2G mochitest bugs.
Status: NEW → RESOLVED
Last Resolved: 10 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.