-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
set(XFAIL_TESTS | ||
cli-e.test | ||
sort-dupes.test | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
description test -e: write error log to file | ||
return 0 | ||
arguments -eerror.log.txt -l dupe.zip | ||
arguments -eerror.log -l dupe.zip | ||
file dupe.zip dupe.zip dupe.zip | ||
stdout | ||
Rezipping - dupe.zip | ||
-------------------------------------------------- | ||
Adding - abc (4 bytes)...Done | ||
Not done | ||
end-of-inline-data | ||
stderr | ||
Zip file "dupe.zip" contains more than one file named "abc" | ||
!!!! There were problems! See "error.log" for details! !!!! | ||
end-of-inline-data | ||
file error.log.txt {} <inline> | ||
[2024/03/05 - 21:41:30] Zip file "dupe.zip" contains more than one file named "abc" | ||
file error.log {} <inline.log> | ||
[timestamp] Zip file "dupe.zip" contains more than one file named "abc" | ||
end-of-inline-data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import fileinput | ||
import re | ||
|
||
timestamp_re = re.compile(r'\[\d\d\d\d/\d\d/\d\d - \d\d:\d\d:\d\d\]') | ||
|
||
for line in fileinput.input(): | ||
line = line.rstrip() | ||
line = re.sub(timestamp_re, '[timestamp]', line) | ||
print(line) | ||
|