Ignore disabled test groups. Causes disabled parameterized tests to not run unless --gtest_also_run_disabled_tests is present.
diff --git a/gtest-parallel b/gtest-parallel index f2034b1..3e2fdb4 100755 --- a/gtest-parallel +++ b/gtest-parallel
@@ -307,14 +307,14 @@ if line[0] != " ": test_group = line.strip() continue - line = line.strip() - if not options.gtest_also_run_disabled_tests and 'DISABLED' in line: - continue + # Remove comments for parameterized tests and strip whitespace. line = line.split('#')[0].strip() if not line: continue test = test_group + line + if not options.gtest_also_run_disabled_tests and 'DISABLED_' in test: + continue tests.append((times.get_test_time(test_binary, test), test_binary, test, command))