Skip to content

Commit c006395

Browse files
authored
Merge pull request #31 from Sage-Bionetworks-Workflows/ataylor/fix-grep-date-test
Fix grep date test
2 parents 3b6f370 + a43ad7c commit c006395

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/dcqc/tests/tests.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,12 @@ def generate_process(self) -> Process:
145145
file = self.get_file()
146146
path = file.local_path.as_posix()
147147
command_args = [
148-
"grep",
149-
"-E",
150-
"-w",
151-
"-i",
152-
"'date|time'",
148+
"!" "grep", # negate exit status
149+
"-E", # extended regular expression
150+
"-i", # case insensitive
151+
"-a", # treat input as text
152+
"-q", # suppress output
153+
"'date|time'", # match date or time
153154
path,
154155
]
155156
process = Process(

0 commit comments

Comments
 (0)