Skip to content

Commit 21600c6

Browse files
authored
Merge pull request github#11037 from igfoo/igfoo/log
Kotlin: Integration tests: Allow \ as a path separator in logs test
2 parents e356720 + a53c210 commit 21600c6

File tree

6 files changed

+1
-1
lines changed

6 files changed

+1
-1
lines changed

java/ql/integration-tests/posix-only/kotlin/logs/index_logs.py renamed to java/ql/integration-tests/all-platforms/kotlin/logs/index_logs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def write_line(origin, kind, msg):
3131
for line in f_in:
3232
j = json.loads(line)
3333
msg = j['message']
34-
msg = re.sub('(?<=Extraction for invocation TRAP file ).*/kt-db/trap/java/invocations/kotlin\..*\.trap', '<FILENAME>', msg)
34+
msg = re.sub(r'(?<=Extraction for invocation TRAP file ).*[\\/]kt-db[\\/]trap[\\/]java[\\/]invocations[\\/]kotlin\..*\.trap', '<FILENAME>', msg)
3535
msg = re.sub('(?<=Kotlin version )[0-9.]+', '<VERSION>', msg)
3636
if msg.startswith('Peak memory: '):
3737
# Peak memory information varies from run to run, so just ignore it

0 commit comments

Comments
 (0)