| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 The Chromium 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 io | 5 import io |
| 6 import os | 6 import os |
| 7 import platform | 7 import platform |
| 8 import sys | 8 import sys |
| 9 import time | 9 import time |
| 10 import unittest | 10 import unittest |
| 11 | 11 |
| 12 import common | 12 import common |
| 13 | 13 |
| 14 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, | 14 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, |
| 15 os.pardir, 'tools', 'variations')) | 15 os.pardir, 'tools', 'variations')) |
| 16 import fieldtrial_util | 16 import fieldtrial_util |
| 17 | 17 |
| 18 test_blacklist = [ | 18 test_blacklist = [ |
| 19 # These tests set their own field trials and should be ignored. | 19 # These tests set their own field trials and should be ignored. |
| 20 'lite_page.LitePage.testLitePageFallback', |
| 20 'lofi.LoFi.testLoFiSlowConnection', | 21 'lofi.LoFi.testLoFiSlowConnection', |
| 21 'lofi.LoFi.testLoFiIfHeavyFastConnection', | 22 'lofi.LoFi.testLoFiIfHeavyFastConnection', |
| 22 'quic.Quic.testCheckPageWithQuicProxy', | 23 'quic.Quic.testCheckPageWithQuicProxy', |
| 23 'quic.Quic.testCheckPageWithQuicProxyTransaction', | 24 'quic.Quic.testCheckPageWithQuicProxyTransaction', |
| 24 'lite_page.LitePage.testLitePageFallback', | 25 'smoke.Smoke.testCheckPageWithHoldback', |
| 25 ] | 26 ] |
| 26 | 27 |
| 27 def GetExperimentArgs(): | 28 def GetExperimentArgs(): |
| 28 """Returns a list of arguments with all tested field trials. | 29 """Returns a list of arguments with all tested field trials. |
| 29 | 30 |
| 30 This function is a simple wrapper around the variation team's fieldtrail_util | 31 This function is a simple wrapper around the variation team's fieldtrail_util |
| 31 script that generates command line arguments to test Chromium field trials. | 32 script that generates command line arguments to test Chromium field trials. |
| 32 | 33 |
| 33 Returns: | 34 Returns: |
| 34 an array of command line arguments to pass to chrome | 35 an array of command line arguments to pass to chrome |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 print 'To repeat this test, run: ' | 112 print 'To repeat this test, run: ' |
| 112 print "%s %s %s --test_filter=%s --browser_args='%s'" % (sys.executable, | 113 print "%s %s %s --test_filter=%s --browser_args='%s'" % (sys.executable, |
| 113 os.path.join(os.path.dirname(__file__), 'run_all_tests.py'), | 114 os.path.join(os.path.dirname(__file__), 'run_all_tests.py'), |
| 114 ' '.join(sys.argv[1:]), '.'.join(test_id.split('.')[1:]), | 115 ' '.join(sys.argv[1:]), '.'.join(test_id.split('.')[1:]), |
| 115 experiment_args) | 116 experiment_args) |
| 116 if flags.failfast: | 117 if flags.failfast: |
| 117 return | 118 return |
| 118 | 119 |
| 119 if __name__ == '__main__': | 120 if __name__ == '__main__': |
| 120 main() | 121 main() |
| OLD | NEW |