| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import logging, os, re, shutil | 5 import logging, os, re, shutil |
| 6 from autotest_lib.client.bin import utils | 6 from autotest_lib.client.bin import utils |
| 7 from autotest_lib.client.common_lib import error | 7 from autotest_lib.client.common_lib import error |
| 8 from autotest_lib.client.cros import ui, ui_test | 8 from autotest_lib.client.cros import cros_ui_test, ui |
| 9 | 9 |
| 10 class graphics_O3DSelenium(ui_test.UITest): | 10 class graphics_O3DSelenium(cros_ui_test.UITest): |
| 11 version = 1 | 11 version = 1 |
| 12 | 12 |
| 13 flaky_test_list = ["TestSampleanimated_sceneLarge", | 13 flaky_test_list = ["TestSampleanimated_sceneLarge", |
| 14 "TestSamplebillboardsMedium", | 14 "TestSamplebillboardsMedium", |
| 15 "TestSampleconvolutionMedium", | 15 "TestSampleconvolutionMedium", |
| 16 "TestSamplegenerate_textureSmall", | 16 "TestSamplegenerate_textureSmall", |
| 17 "TestSampleinstance_overrideMedium", | 17 "TestSampleinstance_overrideMedium", |
| 18 "TestSamplejugglerMedium", | 18 "TestSamplejugglerMedium", |
| 19 "TestSamplesobelMedium", | 19 "TestSamplesobelMedium", |
| 20 "TestSampleold_school_shadowsMedium", | 20 "TestSampleold_school_shadowsMedium", |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 error_message = "Unexpected failure cases:" | 90 error_message = "Unexpected failure cases:" |
| 91 for report_item in report: | 91 for report_item in report: |
| 92 if report_item in self.flaky_test_list: | 92 if report_item in self.flaky_test_list: |
| 93 ignored_failures += 1 | 93 ignored_failures += 1 |
| 94 logging.info("FAILURE (ignored): %s" % report_item) | 94 logging.info("FAILURE (ignored): %s" % report_item) |
| 95 else: | 95 else: |
| 96 error_message += " " + report_item | 96 error_message += " " + report_item |
| 97 | 97 |
| 98 if failures > ignored_failures: | 98 if failures > ignored_failures: |
| 99 raise error.TestFail(error_message) | 99 raise error.TestFail(error_message) |
| OLD | NEW |