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
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/swprofile, class AndroidTest/AndroidTestInstaller/AndroidTestRunner/AndroidTestParser

To post a comment you must log in.
Revision history for this message
Paul Larson (pwlars) wrote :

running=PYTHONPATH=. python -m subunit.run tests.test_suite
======================================================================
FAIL: tests.test_lavaandroidtest_commands.ListInstalled.test_list_installed
----------------------------------------------------------------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "tests/test_lavaandroidtest_commands.py", line 59, in test_list_installed
    self.assertTrue(test_name in self.out.getvalue())
AssertionError: False is not true
------------
======================================================================
FAIL: tests.test_lavaandroidtest_commands.RunTest.test_run_command_test_not_exist
----------------------------------------------------------------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "tests/test_lavaandroidtest_commands.py", line 86, in test_run_command_test_not_exist
    self.assertRaises(SystemExit, LAVAAndroidTestDispatcher().dispatch, ['run', 'abc'])
AssertionError: SystemExit not raised
------------
======================================================================
FAIL: tests.test_swprofile.SwprofileTests.test_get_package_info
----------------------------------------------------------------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "tests/test_swprofile.py", line 86, in test_get_package_info
    self.assertEqual(packages, result_hash)
AssertionError: {'com.android.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]...
+ {'[': '4: CLASSPATH=/data/lava-android-test/temp/lavatools.jar: unexpected operator',
- {'android': '4.0.1.2.3.4.5.6.7.8.9-3 (#14)',
? ^

+ '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)',
   'com.android.videoeditor': '1.1 (#11)',
   'com.android.vpndialogs': '4.0.1.2.3.4.5.6.7.8.9-3 (#14)',
   'com.android.wallpaper': '4.0.1.2.3.4.5.6.7.8.9-3 (#14)',
   'com.android.wallpaper.livepicker': '4.0.1.2.3.4.5.6.7.8.9-3 (#14)',
   'com.svox.pico': '1.0 (#1)'}
------------
======================================================================
FAIL: tests.test_hwprofile.HwprofileTests.test_get_cpu_devs
----------------------------------------------------------------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "tests/test_hwprofile.py", line 117, in test_get_cpu_devs
    self.assertEqual(cpuinfo, devs[0])
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',
                  'cpu_model_name': 'ARMv7 Processor rev 2 (v7l)',
                  'processor': '0'},
   'description': 'Processor #0',
   'device_type': 'device.cpu'}
------------
id=0, tests=29, failures=4

129. By Yongqin Liu

fix fake_adb to use bash

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches