[Stress] Define `--timeout` in run_memcheck.py used in gtest-parallel (#1576)
authorVitaliy Urusovskij <vitaliy.urusovskij@intel.com>
Wed, 5 Aug 2020 09:33:01 +0000 (12:33 +0300)
committerGitHub <noreply@github.com>
Wed, 5 Aug 2020 09:33:01 +0000 (12:33 +0300)
tests/stress_tests/scripts/run_memcheck.py

index ce600e9..83434ed 100755 (executable)
@@ -98,6 +98,7 @@ def main():
     parser.add_argument('binary', help='test binary to execute')
     parser.add_argument('--gtest_parallel', help='path to gtest-parallel to use',
                         default='gtest_parallel')
+    parser.add_argument('--timeout', help='timeout for tests run within gtest-parallel')
     parser.add_argument('-d', '--output_dir',
                         required=args.timeline_report or args.upload or args.compare,
                         help='output directory for test logs')
@@ -148,6 +149,7 @@ def main():
     returncode, _ = run([sys.executable, args.gtest_parallel] +
                         (['--output_dir', f'{args.output_dir}'] if args.output_dir else []) +
                         (['--workers', f'{args.workers}'] if args.workers else []) +
+                        (['--timeout', f'{args.timeout}'] if args.timeout else []) +
                         [args.binary] +
                         ['--'] + binary_args)