| OLD | NEW |
| 1 # Copyright (C) 2010 Google Inc. All rights reserved. | 1 # Copyright (C) 2010 Google Inc. All rights reserved. |
| 2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze
ged | 2 # Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Sze
ged |
| 3 # Copyright (C) 2011 Apple Inc. All rights reserved. | 3 # Copyright (C) 2011 Apple Inc. All rights reserved. |
| 4 # | 4 # |
| 5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
| 6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
| 7 # met: | 7 # met: |
| 8 # | 8 # |
| 9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
| 10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 "--json-test-results", | 167 "--json-test-results", |
| 168 action="store", | 168 action="store", |
| 169 help="Path to write the JSON test results to."), | 169 help="Path to write the JSON test results to."), |
| 170 optparse.make_option( | 170 optparse.make_option( |
| 171 "--new-baseline", | 171 "--new-baseline", |
| 172 action="store_true", | 172 action="store_true", |
| 173 default=False, | 173 default=False, |
| 174 help=("Save generated results as new baselines into the *most-sp
ecific-platform* " | 174 help=("Save generated results as new baselines into the *most-sp
ecific-platform* " |
| 175 "directory, overwriting whatever's already there. Equivale
nt to " | 175 "directory, overwriting whatever's already there. Equivale
nt to " |
| 176 "--reset-results --add-platform-exceptions")), | 176 "--reset-results --add-platform-exceptions")), |
| 177 # TODO(ojan): Remove once bots stop using it. | |
| 178 optparse.make_option( | |
| 179 "--no-new-test-results", | |
| 180 help="This doesn't do anything. TODO(ojan): Remove once bots sto
p using it."), | |
| 181 optparse.make_option( | 177 optparse.make_option( |
| 182 "--new-test-results", | 178 "--new-test-results", |
| 183 action="store_true", | 179 action="store_true", |
| 184 default=False, | 180 default=False, |
| 185 help="Create new baselines when no expected results exist"), | 181 help="Create new baselines when no expected results exist"), |
| 186 optparse.make_option( | 182 optparse.make_option( |
| 187 "--no-show-results", | 183 "--no-show-results", |
| 188 dest="show_results", | 184 dest="show_results", |
| 189 action="store_false", | 185 action="store_false", |
| 190 default=True, | 186 default=True, |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 _log.debug("\t%s", process) | 583 _log.debug("\t%s", process) |
| 588 | 584 |
| 589 return run_details | 585 return run_details |
| 590 | 586 |
| 591 finally: | 587 finally: |
| 592 printer.cleanup() | 588 printer.cleanup() |
| 593 | 589 |
| 594 if __name__ == '__main__': | 590 if __name__ == '__main__': |
| 595 exit_code = main(sys.argv[1:], sys.stdout, sys.stderr) | 591 exit_code = main(sys.argv[1:], sys.stdout, sys.stderr) |
| 596 sys.exit(exit_code) | 592 sys.exit(exit_code) |
| OLD | NEW |