run_unittests returns a proper exit status.

It'll now return 0, 1 or 2, corresponding to the number of test
invocations (either user or root privileged) that failed.

BUG=None
TEST=Script runs and returns correct status.

Change-Id: I0d5bd8436b1a9972337f34073321239d94565748
Reviewed-on: https://gerrit.chromium.org/gerrit/31006
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Commit-Ready: Gilad Arnold <garnold@chromium.org>
Tested-by: Gilad Arnold <garnold@chromium.org>
1 file changed
tree: 11498bc5f5843b1671aedc4a0a886191f463d468
  1. .gitignore
  2. 99-gpio-dutflag.rules
  3. LICENSE
  4. SConstruct
  5. UpdateEngine.conf
  6. WATCHLISTS
  7. action.h
  8. action_mock.h
  9. action_pipe.h
  10. action_pipe_unittest.cc
  11. action_processor.cc
  12. action_processor.h
  13. action_processor_mock.h
  14. action_processor_unittest.cc
  15. action_unittest.cc
  16. build
  17. bzip.cc
  18. bzip.h
  19. bzip_extent_writer.cc
  20. bzip_extent_writer.h
  21. bzip_extent_writer_unittest.cc
  22. certificate_checker.cc
  23. certificate_checker.h
  24. certificate_checker_mock.h
  25. certificate_checker_unittest.cc
  26. chrome_browser_proxy_resolver.cc
  27. chrome_browser_proxy_resolver.h
  28. chrome_browser_proxy_resolver_unittest.cc
  29. chrome_proxy_resolver.cc
  30. chrome_proxy_resolver.h
  31. chrome_proxy_resolver_unittest.cc
  32. connection_manager.cc
  33. connection_manager.h
  34. connection_manager_unittest.cc
  35. cycle_breaker.cc
  36. cycle_breaker.h
  37. cycle_breaker_unittest.cc
  38. dbus_constants.h
  39. dbus_interface.h
  40. dbus_service.cc
  41. dbus_service.h
  42. delta_diff_generator.cc
  43. delta_diff_generator.h
  44. delta_diff_generator_unittest.cc
  45. delta_performer.cc
  46. delta_performer.h
  47. delta_performer_unittest.cc
  48. download_action.cc
  49. download_action.h
  50. download_action_unittest.cc
  51. extent_mapper.cc
  52. extent_mapper.h
  53. extent_mapper_unittest.cc
  54. extent_ranges.cc
  55. extent_ranges.h
  56. extent_ranges_unittest.cc
  57. extent_writer.cc
  58. extent_writer.h
  59. extent_writer_unittest.cc
  60. file_descriptor.cc
  61. file_descriptor.h
  62. file_writer.cc
  63. file_writer.h
  64. file_writer_mock.h
  65. file_writer_unittest.cc
  66. filesystem_copier_action.cc
  67. filesystem_copier_action.h
  68. filesystem_copier_action_unittest.cc
  69. filesystem_iterator.cc
  70. filesystem_iterator.h
  71. filesystem_iterator_unittest.cc
  72. full_update_generator.cc
  73. full_update_generator.h
  74. full_update_generator_unittest.cc
  75. gen_coverage_html
  76. generate_delta_main.cc
  77. gpio_handler.cc
  78. gpio_handler.h
  79. gpio_handler_unittest.cc
  80. gpio_handler_unittest.h
  81. gpio_mock_file_descriptor.cc
  82. gpio_mock_file_descriptor.h
  83. gpio_mock_udev_interface.cc
  84. gpio_mock_udev_interface.h
  85. graph_types.h
  86. graph_utils.cc
  87. graph_utils.h
  88. graph_utils_unittest.cc
  89. http_common.cc
  90. http_common.h
  91. http_fetcher.cc
  92. http_fetcher.h
  93. http_fetcher_unittest.cc
  94. http_fetcher_unittest.h
  95. inherit-review-settings-ok
  96. install_plan.h
  97. integration_unittest.cc
  98. libcurl_http_fetcher.cc
  99. libcurl_http_fetcher.h
  100. local_coverage_rate
  101. main.cc
  102. marshal.list
  103. metadata.cc
  104. metadata.h
  105. metadata_unittest.cc
  106. mock_connection_manager.h
  107. mock_dbus_interface.h
  108. mock_file_writer.h
  109. mock_http_fetcher.cc
  110. mock_http_fetcher.h
  111. mock_system_state.h
  112. multi_range_http_fetcher.cc
  113. multi_range_http_fetcher.h
  114. omaha_hash_calculator.cc
  115. omaha_hash_calculator.h
  116. omaha_hash_calculator_unittest.cc
  117. omaha_request_action.cc
  118. omaha_request_action.h
  119. omaha_request_action_unittest.cc
  120. omaha_request_params.cc
  121. omaha_request_params.h
  122. omaha_request_params_unittest.cc
  123. omaha_response_handler_action.cc
  124. omaha_response_handler_action.h
  125. omaha_response_handler_action_unittest.cc
  126. org.chromium.UpdateEngine.service
  127. payload_signer.cc
  128. payload_signer.h
  129. payload_signer_unittest.cc
  130. postinstall_runner_action.cc
  131. postinstall_runner_action.h
  132. postinstall_runner_action_unittest.cc
  133. prefs.cc
  134. prefs.h
  135. prefs_interface.h
  136. prefs_mock.h
  137. prefs_unittest.cc
  138. proxy_resolver.cc
  139. proxy_resolver.h
  140. run_unittests
  141. setup_dev_packages
  142. simple_key_value_store.cc
  143. simple_key_value_store.h
  144. simple_key_value_store_unittest.cc
  145. subprocess.cc
  146. subprocess.h
  147. subprocess_unittest.cc
  148. system_state.cc
  149. system_state.h
  150. tarjan.cc
  151. tarjan.h
  152. tarjan_unittest.cc
  153. terminator.cc
  154. terminator.h
  155. terminator_unittest.cc
  156. test_http_server.cc
  157. test_utils.cc
  158. test_utils.h
  159. testrunner.cc
  160. topological_sort.cc
  161. topological_sort.h
  162. topological_sort_unittest.cc
  163. udev_interface.h
  164. unittest_key.pem
  165. unittest_key2.pem
  166. update_attempter.cc
  167. update_attempter.h
  168. update_attempter_mock.h
  169. update_attempter_unittest.cc
  170. update_check_scheduler.cc
  171. update_check_scheduler.h
  172. update_check_scheduler_unittest.cc
  173. update_engine.xml
  174. update_engine_client.cc
  175. update_metadata.proto
  176. utils.cc
  177. utils.h
  178. utils_unittest.cc
  179. zip_unittest.cc