Merge lp://staging/~liuyq0307/lava-android-test/add-unittest into lp://staging/lava-android-test
Proposed by
Yongqin Liu
Status: | Superseded |
---|---|
Proposed branch: | lp://staging/~liuyq0307/lava-android-test/add-unittest |
Merge into: | lp://staging/lava-android-test |
Diff against target: |
936 lines (+850/-6) 12 files modified
lava_android_test/hwprofile.py (+6/-6) tests/__init__.py (+29/-0) tests/fixtures.py (+37/-0) tests/imposters.py (+78/-0) tests/test_hwprofile.py (+176/-0) tests/test_lavaandroidtest_commands.py (+95/-0) tests/test_lavaandroidtest_test.py (+88/-0) tests/test_lavaandroidtest_testinstaller.py (+58/-0) tests/test_lavaandroidtest_testparser.py (+55/-0) tests/test_lavaandroidtest_testrunner.py (+65/-0) tests/test_swprofile.py (+87/-0) tests/tests_util.py (+76/-0) |
To merge this branch: | bzr merge lp://staging/~liuyq0307/lava-android-test/add-unittest |
Related bugs: | |
Related blueprints: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Linaro Validation Team | Pending | ||
Review via email: mp+85693@code.staging.launchpad.net |
This proposal has been superseded by a proposal from 2011-12-15.
Description of the change
add unit test for packages hwprofile/
To post a comment you must log in.
running= PYTHONPATH= . python -m subunit.run tests.test_suite ======= ======= ======= ======= ======= ======= ======= ======= ======= lavaandroidtest _commands. ListInstalled. test_list_ installed ------- ------- ------- ------- ------- ------- ------- ------- ------- test_lavaandroi dtest_commands. py", line 59, in test_list_installed assertTrue( test_name in self.out. getvalue( )) ======= ======= ======= ======= ======= ======= ======= ======= ======= lavaandroidtest _commands. RunTest. test_run_ command_ test_not_ exist ------- ------- ------- ------- ------- ------- ------- ------- ------- test_lavaandroi dtest_commands. py", line 86, in test_run_ command_ test_not_ exist assertRaises( SystemExit, LAVAAndroidTest Dispatcher( ).dispatch, ['run', 'abc']) ======= ======= ======= ======= ======= ======= ======= ======= ======= swprofile. SwprofileTests. test_get_ package_ info ------- ------- ------- ------- ------- ------- ------- ------- ------- test_swprofile. py", line 86, in test_get_ package_ info assertEqual( packages, result_hash) wallpaper' : '4.0.1. 2.3.4.5. 6.7.8.9- 3 (#14)', 'com.android. videoedi [truncated]... != {'com.android. wallpaper' : '4.0.1. 2.3.4.5. 6.7.8.9- 3 (#14)', 'com.android. videoedi [truncated]... /data/lava- android- test/temp/ lavatools. jar: unexpected operator', 2.3.4.5. 6.7.8.9- 3 (#14)',
=======
FAIL: tests.test_
-------
Text attachment: traceback
------------
Traceback (most recent call last):
File "tests/
self.
AssertionError: False is not true
------------
=======
FAIL: tests.test_
-------
Text attachment: traceback
------------
Traceback (most recent call last):
File "tests/
self.
AssertionError: SystemExit not raised
------------
=======
FAIL: tests.test_
-------
Text attachment: traceback
------------
Traceback (most recent call last):
File "tests/
self.
AssertionError: {'com.android.
+ {'[': '4: CLASSPATH=
- {'android': '4.0.1.
? ^
+ 'android': '4.0.1. 2.3.4.5. 6.7.8.9- 3 (#14)',
? ^
'com. android. musicvis' : '4.0.1. 2.3.4.5. 6.7.8.9- 3 (#14)', android. videoeditor' : '1.1 (#11)', android. vpndialogs' : '4.0.1. 2.3.4.5. 6.7.8.9- 3 (#14)', android. wallpaper' : '4.0.1. 2.3.4.5. 6.7.8.9- 3 (#14)', android. wallpaper. livepicker' : '4.0.1. 2.3.4.5. 6.7.8.9- 3 (#14)', ======= ======= ======= ======= ======= ======= ======= ======= ======= hwprofile. HwprofileTests. test_get_ cpu_devs ------- ------- ------- ------- ------- ------- ------- ------- ------- test_hwprofile. py", line 117, in test_get_cpu_devs assertEqual( cpuinfo, devs[0])
'cpu_ model_name' : 'ARMv7 Processor rev 2 (v7l)',
'processor' : '0'},
'com.
'com.
'com.
'com.
'com.svox.pico': '1.0 (#1)'}
------------
=======
FAIL: tests.test_
-------
Text attachment: traceback
------------
Traceback (most recent call last):
File "tests/
self.
AssertionError: {'attributes': {'cpu_model_name': 'ARMv7 Processor rev 2 (v7l)', 'processor': '0 [truncated]... != {'attributes': {'cpu_model_name': 'ARMv7 Processor rev 2 (v7l)', '[': '4: cat: u [truncated]...
{'attributes': {'BogoMIPS': '1576.53',
+ '[': '4: cat: unexpected operator',
'description': 'Processor #0',
'device_type': 'device.cpu'}
------------
id=0, tests=29, failures=4