Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: tools-webrtc/mb/mb_unittest.py

Issue 2843263005: Don't display colors on gtest-parallel logs on swarming. (Closed)
Patch Set: Address comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools-webrtc/mb/mb.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 # 3 #
4 # Use of this source code is governed by a BSD-style license 4 # Use of this source code is governed by a BSD-style license
5 # that can be found in the LICENSE file in the root of the source 5 # that can be found in the LICENSE file in the root of the source
6 # tree. An additional intellectual property rights grant can be found 6 # tree. An additional intellectual property rights grant can be found
7 # in the file PATENTS. All contributing project authors may 7 # in the file PATENTS. All contributing project authors may
8 # be found in the AUTHORS file in the root of the source tree. 8 # be found in the AUTHORS file in the root of the source tree.
9 9
10 """Tests for mb.py.""" 10 """Tests for mb.py."""
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 441
442 self.assertEqual(files, [ 442 self.assertEqual(files, [
443 '../../testing/test_env.py', 443 '../../testing/test_env.py',
444 '../../third_party/gtest-parallel/gtest-parallel', 444 '../../third_party/gtest-parallel/gtest-parallel',
445 '../../tools-webrtc/gtest-parallel-wrapper.py', 445 '../../tools-webrtc/gtest-parallel-wrapper.py',
446 'base_unittests', 446 'base_unittests',
447 ]) 447 ])
448 self.assertEqual(command, [ 448 self.assertEqual(command, [
449 '../../testing/test_env.py', 449 '../../testing/test_env.py',
450 '../../tools-webrtc/gtest-parallel-wrapper.py', 450 '../../tools-webrtc/gtest-parallel-wrapper.py',
451 '--gtest_color=no',
451 '--output_dir=${ISOLATED_OUTDIR}/test_logs', 452 '--output_dir=${ISOLATED_OUTDIR}/test_logs',
452 './base_unittests', 453 './base_unittests',
453 '--workers=1', 454 '--workers=1',
454 '--', 455 '--',
455 '--asan=0', 456 '--asan=0',
456 '--msan=0', 457 '--msan=0',
457 '--tsan=0', 458 '--tsan=0',
458 ]) 459 ])
459 460
460 def test_gn_isolate_windowed_test_launcher_linux(self): 461 def test_gn_isolate_windowed_test_launcher_linux(self):
(...skipping 25 matching lines...) Expand all
486 '../../testing/test_env.py', 487 '../../testing/test_env.py',
487 '../../testing/xvfb.py', 488 '../../testing/xvfb.py',
488 '../../third_party/gtest-parallel/gtest-parallel', 489 '../../third_party/gtest-parallel/gtest-parallel',
489 '../../tools-webrtc/gtest-parallel-wrapper.py', 490 '../../tools-webrtc/gtest-parallel-wrapper.py',
490 'base_unittests', 491 'base_unittests',
491 'some_resource_file', 492 'some_resource_file',
492 ]) 493 ])
493 self.assertEqual(command, [ 494 self.assertEqual(command, [
494 '../../testing/xvfb.py', 495 '../../testing/xvfb.py',
495 '../../tools-webrtc/gtest-parallel-wrapper.py', 496 '../../tools-webrtc/gtest-parallel-wrapper.py',
497 '--gtest_color=no',
496 '--output_dir=${ISOLATED_OUTDIR}/test_logs', 498 '--output_dir=${ISOLATED_OUTDIR}/test_logs',
497 './base_unittests', 499 './base_unittests',
498 '--', 500 '--',
499 '--asan=0', 501 '--asan=0',
500 '--msan=0', 502 '--msan=0',
501 '--tsan=0', 503 '--tsan=0',
502 ]) 504 ])
503 505
504 def test_gn_gen_windowed_test_launcher_win(self): 506 def test_gn_gen_windowed_test_launcher_win(self):
505 files = { 507 files = {
(...skipping 25 matching lines...) Expand all
531 self.assertEqual(files, [ 533 self.assertEqual(files, [
532 '../../testing/test_env.py', 534 '../../testing/test_env.py',
533 '../../third_party/gtest-parallel/gtest-parallel', 535 '../../third_party/gtest-parallel/gtest-parallel',
534 '../../tools-webrtc/gtest-parallel-wrapper.py', 536 '../../tools-webrtc/gtest-parallel-wrapper.py',
535 'some_dependency', 537 'some_dependency',
536 'unittests.exe', 538 'unittests.exe',
537 ]) 539 ])
538 self.assertEqual(command, [ 540 self.assertEqual(command, [
539 '../../testing/test_env.py', 541 '../../testing/test_env.py',
540 '../../tools-webrtc/gtest-parallel-wrapper.py', 542 '../../tools-webrtc/gtest-parallel-wrapper.py',
543 '--gtest_color=no',
541 '--output_dir=${ISOLATED_OUTDIR}\\test_logs', 544 '--output_dir=${ISOLATED_OUTDIR}\\test_logs',
542 r'.\unittests.exe', 545 r'.\unittests.exe',
543 '--', 546 '--',
544 '--asan=0', 547 '--asan=0',
545 '--msan=0', 548 '--msan=0',
546 '--tsan=0', 549 '--tsan=0',
547 ]) 550 ])
548 551
549 def test_gn_gen_console_test_launcher(self): 552 def test_gn_gen_console_test_launcher(self):
550 test_files = { 553 test_files = {
(...skipping 21 matching lines...) Expand all
572 575
573 self.assertEqual(files, [ 576 self.assertEqual(files, [
574 '../../testing/test_env.py', 577 '../../testing/test_env.py',
575 '../../third_party/gtest-parallel/gtest-parallel', 578 '../../third_party/gtest-parallel/gtest-parallel',
576 '../../tools-webrtc/gtest-parallel-wrapper.py', 579 '../../tools-webrtc/gtest-parallel-wrapper.py',
577 'base_unittests', 580 'base_unittests',
578 ]) 581 ])
579 self.assertEqual(command, [ 582 self.assertEqual(command, [
580 '../../testing/test_env.py', 583 '../../testing/test_env.py',
581 '../../tools-webrtc/gtest-parallel-wrapper.py', 584 '../../tools-webrtc/gtest-parallel-wrapper.py',
585 '--gtest_color=no',
582 '--output_dir=${ISOLATED_OUTDIR}/test_logs', 586 '--output_dir=${ISOLATED_OUTDIR}/test_logs',
583 './base_unittests', 587 './base_unittests',
584 '--', 588 '--',
585 '--asan=0', 589 '--asan=0',
586 '--msan=0', 590 '--msan=0',
587 '--tsan=0', 591 '--tsan=0',
588 ]) 592 ])
589 593
590 def test_gn_isolate_console_test_launcher_memcheck(self): 594 def test_gn_isolate_console_test_launcher_memcheck(self):
591 test_files = { 595 test_files = {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 self.check(['lookup', '-c', 'fake_config'], mbw=mbw, 771 self.check(['lookup', '-c', 'fake_config'], mbw=mbw,
768 ret=0, 772 ret=0,
769 out=("GYP_DEFINES='foo=bar baz=1'\n" 773 out=("GYP_DEFINES='foo=bar baz=1'\n"
770 "GYP_LINK_CONCURRENCY=1\n" 774 "GYP_LINK_CONCURRENCY=1\n"
771 "LLVM_FORCE_HEAD_REVISION=1\n" 775 "LLVM_FORCE_HEAD_REVISION=1\n"
772 "python build/gyp_chromium -G output_dir=_path_\n")) 776 "python build/gyp_chromium -G output_dir=_path_\n"))
773 777
774 778
775 if __name__ == '__main__': 779 if __name__ == '__main__':
776 unittest.main() 780 unittest.main()
OLDNEW
« no previous file with comments | « tools-webrtc/mb/mb.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698