mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Kotlin: Integration tests: Allow \ as a path separator in logs test
This commit is contained in:
@@ -31,7 +31,7 @@ with open('logs.csv', 'w', newline='') as f_out:
|
||||
for line in f_in:
|
||||
j = json.loads(line)
|
||||
msg = j['message']
|
||||
msg = re.sub('(?<=Extraction for invocation TRAP file ).*/kt-db/trap/java/invocations/kotlin\..*\.trap', '<FILENAME>', msg)
|
||||
msg = re.sub(r'(?<=Extraction for invocation TRAP file ).*[\\/]kt-db[\\/]trap[\\/]java[\\/]invocations[\\/]kotlin\..*\.trap', '<FILENAME>', msg)
|
||||
msg = re.sub('(?<=Kotlin version )[0-9.]+', '<VERSION>', msg)
|
||||
if msg.startswith('Peak memory: '):
|
||||
# Peak memory information varies from run to run, so just ignore it
|
||||
|
||||
Reference in New Issue
Block a user