Cannot run autopilot's own autopilot tests

Bug #1277630 reported by Barry Warsaw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopilot (Ubuntu)
New
Undecided
Unassigned

Bug Description

I'm not even sure if this is a valid use case. If not, feel free to mark this bug Invalid.

If you adb shell into the emulator (but a touch device is also appropriate), and apt-get install all the autopilot packages, you can get a list of all the tests via `autopilot list autopilot`.

However, you cannot run these tests via `autopilot run autopilot` while adb shell'd in. Here's an excerpt of the types of failures you will see:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/autopilot/utilities.py", line 333, in action_on_test_end
    obj.on_test_end(test_instance)
  File "/usr/lib/python2.7/dist-packages/autopilot/input/_X11.py", line 478, in on_test_end
    move_mouse_to_screen(0)
  File "/usr/lib/python2.7/dist-packages/autopilot/display/__init__.py", line 59, in move_mouse_to_screen
    Mouse.create().move(x, y, False)
  File "/usr/lib/python2.7/dist-packages/autopilot/input/__init__.py", line 293, in create
    "Cannot create a Mouse on devices where X11 is not available."
RuntimeError: Cannot create a Mouse on devices where X11 is not available.
}}}
======================================================================
FAIL: autopilot.tests.unit.test_content.FileFollowerTests.test_follow_file_logs_error_on_IOError
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/autopilot/tests/unit/test_content.py", line 106, in test_follow_file_logs_error_on_IOError
    "[Errno 13] Permission denied: '%s'" % f.name
  File "/usr/lib/python2.7/dist-packages/mock.py", line 845, in assert_called_once_with
    raise AssertionError(msg)
AssertionError: Expected to be called once. Called 0 times.

Ran 726 tests in 521.330s
FAILED (failures=133)

If it's expected that `autopilot run autopilot` should work, please tell me how to run them correctly, and if they work for you.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.