Index: tools/clang/scripts/test_tool.py |
diff --git a/tools/clang/scripts/test_tool.py b/tools/clang/scripts/test_tool.py |
index 09ff46033d56d0542126feb3ee4d8840ed01d990..0e7b843889879e3563dd298962312ca845fc8749 100755 |
--- a/tools/clang/scripts/test_tool.py |
+++ b/tools/clang/scripts/test_tool.py |
@@ -45,9 +45,9 @@ def main(argv): |
'compile_commands.json') |
source_files = glob.glob(os.path.join(test_directory_for_tool, |
'*-original.cc')) |
- actual_files = ['-'.join([source_file.rsplit('-', 2)[0], 'actual.cc']) |
+ actual_files = ['-'.join([source_file.rsplit('-', 1)[0], 'actual.cc']) |
for source_file in source_files] |
- expected_files = ['-'.join([source_file.rsplit('-', 2)[0], 'expected.cc']) |
+ expected_files = ['-'.join([source_file.rsplit('-', 1)[0], 'expected.cc']) |
for source_file in source_files] |
include_paths = [] |
include_paths.append( |