Skip to content

Commit 9bc0c98

Browse files
committed
Kotlin: Update logs test
1 parent 291330c commit 9bc0c98

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

java/ql/integration-tests/posix-only/kotlin/logs/index_logs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def write_line(origin, kind, msg):
3232
j = json.loads(line)
3333
msg = j['message']
3434
msg = re.sub('(?<=Extraction for invocation TRAP file ).*/kt-db/trap/java/invocations/kotlin\..*\.trap', '<FILENAME>', msg)
35+
msg = re.sub('(?<=Kotlin version )[0-9.]+', '<VERSION>', msg)
3536
if msg.startswith('Peak memory: '):
3637
# Peak memory information varies from run to run, so just ignore it
3738
continue
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
| 1 | 1 | Test script | Log file | 1 |
22
| 1 | 2 | CodeQL Kotlin extractor | INFO | Extraction started |
33
| 1 | 3 | CodeQL Kotlin extractor | INFO | Extraction for invocation TRAP file <FILENAME> |
4-
| 1 | 4 | CodeQL Kotlin extractor | INFO | Extracting file test.kt |
5-
| 1 | 5 | CodeQL Kotlin extractor | INFO | Extraction completed |
4+
| 1 | 4 | CodeQL Kotlin extractor | INFO | Kotlin version <VERSION> |
5+
| 1 | 5 | CodeQL Kotlin extractor | INFO | Extracting file test.kt |
6+
| 1 | 6 | CodeQL Kotlin extractor | INFO | Extraction completed |

0 commit comments

Comments
 (0)