Code review comment for lp:~liuyq0307/lava-android-test/add-unittest

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

« Back to merge proposal