I can't run a particular AutoPilot test case that, it turns out, runs with autopilot3 just fine:
adb shell
> autopilot3 run ubuntuuitoolkit.tests.test_launcher.LauncherQtTestTestCase.test_can_run_qt_test_case -v
Ran 1 test in 2.504s
OK
^^ Works
$ phablet-test-run ubuntuuitoolkit.tests.test_launcher
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/autopilot/run.py", line 380, in _discover_test
top_level_dir=top_level_dir
File "/usr/lib/python3.4/unittest/loader.py", line 261, in discover
raise ImportError('Start directory is not importable: %r' % start_dir)
ImportError: Start directory is not importable: 'ubuntuuitoolkit.tests.test_launcher'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/autopilot3", line 9, in <module>
load_entry_point('autopilot==1.5.0', 'console_scripts', 'autopilot3')()
File "/usr/lib/python3/dist-packages/autopilot/run.py", line 742, in main
test_app.run()
File "/usr/lib/python3/dist-packages/autopilot/run.py", line 628, in run
action()
File "/usr/lib/python3/dist-packages/autopilot/run.py", line 666, in run_tests
self.args.suite
File "/usr/lib/python3/dist-packages/autopilot/run.py", line 470, in load_test_suite_from_name
all_tests, error_occured = _discover_requested_tests(test_names)
File "/usr/lib/python3/dist-packages/autopilot/run.py", line 402, in _discover_requested_tests
test, top_level_dir = _discover_test(name)
File "/usr/lib/python3/dist-packages/autopilot/run.py", line 384, in _discover_test
test = loader.loadTestsFromName(test_name)
File "/usr/lib/python3.4/unittest/loader.py", line 114, in loadTestsFromName
parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_launcher'
/usr/bin/phablet-test-run: 128: return: Illegal number: 1
adb shell
> ls /usr/lib/python3/dist-packages/ubuntuuitoolkit/tests
/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/test_launcher.py
/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/test_launcher.testcase.qml
/usr/lib/python3/dist-packages/ubuntuuitoolkit/tests/test_launcher.touch.qml
phablet-test-run ubuntuuitoolkit.tests.test_launcher.LauncherQtTestTestCase.test_can_run_qt_test_case -v
09:46:50.241 INFO run:235 - Autopilot Source Version: 1.5.0
Autopilot Package Version: 1.5.0+15.04.20141031-0ubuntu1
09:46:50.312 WARNING emulators:26 - The ubuntuuitoolkit.emulators module is deprecated. Import the autopilot helpers from the top-level ubuntuuitoolkit module.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/autopilot/run.py", line 380, in _discover_test
top_level_dir=top_level_dir
File "/usr/lib/python3.4/unittest/loader.py", line 261, in discover
raise ImportError('Start directory is not importable: %r' % start_dir)
ImportError: Start directory is not importable: 'ubuntuuitoolkit.tests.test_launcher.LauncherQtTestTestCase.test_can_run_qt_test_case'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/autopilot3", line 9, in <module>
load_entry_point('autopilot==1.5.0', 'console_scripts', 'autopilot3')()
File "/usr/lib/python3/dist-packages/autopilot/run.py", line 742, in main
test_app.run()
File "/usr/lib/python3/dist-packages/autopilot/run.py", line 628, in run
action()
File "/usr/lib/python3/dist-packages/autopilot/run.py", line 666, in run_tests
self.args.suite
File "/usr/lib/python3/dist-packages/autopilot/run.py", line 470, in load_test_suite_from_name
all_tests, error_occured = _discover_requested_tests(test_names)
File "/usr/lib/python3/dist-packages/autopilot/run.py", line 402, in _discover_requested_tests
test, top_level_dir = _discover_test(name)
File "/usr/lib/python3/dist-packages/autopilot/run.py", line 384, in _discover_test
test = loader.loadTestsFromName(test_name)
File "/usr/lib/python3.4/unittest/loader.py", line 114, in loadTestsFromName
parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_launcher'
/usr/bin/phablet-test-run: 128: return: Illegal number: 1
I can't run a particular AutoPilot test case that, it turns out, runs with autopilot3 just fine:
adb shell .tests. test_launcher. LauncherQtTestT estCase. test_can_ run_qt_ test_case -v
> autopilot3 run ubuntuuitoolkit
Ran 1 test in 2.504s
OK
^^ Works
$ phablet-test-run ubuntuuitoolkit .tests. test_launcher python3/ dist-packages/ autopilot/ run.py" , line 380, in _discover_test dir=top_ level_dir python3. 4/unittest/ loader. py", line 261, in discover t.tests. test_launcher'
Traceback (most recent call last):
File "/usr/lib/
top_level_
File "/usr/lib/
raise ImportError('Start directory is not importable: %r' % start_dir)
ImportError: Start directory is not importable: 'ubuntuuitoolki
During handling of the above exception, another exception occurred:
Traceback (most recent call last): autopilot3" , line 9, in <module> point(' autopilot= =1.5.0' , 'console_scripts', 'autopilot3')() python3/ dist-packages/ autopilot/ run.py" , line 742, in main python3/ dist-packages/ autopilot/ run.py" , line 628, in run python3/ dist-packages/ autopilot/ run.py" , line 666, in run_tests python3/ dist-packages/ autopilot/ run.py" , line 470, in load_test_ suite_from_ name requested_ tests(test_ names) python3/ dist-packages/ autopilot/ run.py" , line 402, in _discover_ requested_ tests test(name) python3/ dist-packages/ autopilot/ run.py" , line 384, in _discover_test loadTestsFromNa me(test_ name) python3. 4/unittest/ loader. py", line 114, in loadTestsFromName phablet- test-run: 128: return: Illegal number: 1
File "/usr/bin/
load_entry_
File "/usr/lib/
test_app.run()
File "/usr/lib/
action()
File "/usr/lib/
self.args.suite
File "/usr/lib/
all_tests, error_occured = _discover_
File "/usr/lib/
test, top_level_dir = _discover_
File "/usr/lib/
test = loader.
File "/usr/lib/
parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_launcher'
/usr/bin/
adb shell python3/ dist-packages/ ubuntuuitoolkit /tests python3/ dist-packages/ ubuntuuitoolkit /tests/ test_launcher. py python3/ dist-packages/ ubuntuuitoolkit /tests/ test_launcher. testcase. qml python3/ dist-packages/ ubuntuuitoolkit /tests/ test_launcher. touch.qml
> ls /usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
phablet-test-run ubuntuuitoolkit .tests. test_launcher. LauncherQtTestT estCase. test_can_ run_qt_ test_case -v 04.20141031- 0ubuntu1 .emulators module is deprecated. Import the autopilot helpers from the top-level ubuntuuitoolkit module. python3/ dist-packages/ autopilot/ run.py" , line 380, in _discover_test dir=top_ level_dir python3. 4/unittest/ loader. py", line 261, in discover t.tests. test_launcher. LauncherQtTestT estCase. test_can_ run_qt_ test_case'
09:46:50.241 INFO run:235 - Autopilot Source Version: 1.5.0
Autopilot Package Version: 1.5.0+15.
09:46:50.312 WARNING emulators:26 - The ubuntuuitoolkit
Traceback (most recent call last):
File "/usr/lib/
top_level_
File "/usr/lib/
raise ImportError('Start directory is not importable: %r' % start_dir)
ImportError: Start directory is not importable: 'ubuntuuitoolki
During handling of the above exception, another exception occurred:
Traceback (most recent call last): autopilot3" , line 9, in <module> point(' autopilot= =1.5.0' , 'console_scripts', 'autopilot3')() python3/ dist-packages/ autopilot/ run.py" , line 742, in main python3/ dist-packages/ autopilot/ run.py" , line 628, in run python3/ dist-packages/ autopilot/ run.py" , line 666, in run_tests python3/ dist-packages/ autopilot/ run.py" , line 470, in load_test_ suite_from_ name requested_ tests(test_ names) python3/ dist-packages/ autopilot/ run.py" , line 402, in _discover_ requested_ tests test(name) python3/ dist-packages/ autopilot/ run.py" , line 384, in _discover_test loadTestsFromNa me(test_ name) python3. 4/unittest/ loader. py", line 114, in loadTestsFromName phablet- test-run: 128: return: Illegal number: 1
File "/usr/bin/
load_entry_
File "/usr/lib/
test_app.run()
File "/usr/lib/
action()
File "/usr/lib/
self.args.suite
File "/usr/lib/
all_tests, error_occured = _discover_
File "/usr/lib/
test, top_level_dir = _discover_
File "/usr/lib/
test = loader.
File "/usr/lib/
parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_launcher'
/usr/bin/
^^ Fails
Code is in lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/autoPilotQtTestLanding