forked from broadinstitute/cromwell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the dollar re-interpolation behavior in draft-2 [BA-4928] (broad…
- Loading branch information
1 parent
8bf12a8
commit ef7bc24
Showing
5 changed files
with
79 additions
and
24 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
14 changes: 14 additions & 0 deletions
14
centaur/src/main/resources/standardTestCases/dollars_in_strings.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: dollars_in_strings | ||
testFormat: workflowsuccess | ||
|
||
files { | ||
workflow: dollars_in_strings/dollars_in_strings.wdl | ||
} | ||
|
||
metadata { | ||
workflowName: read_dollared_strings | ||
status: Succeeded | ||
"outputs.read_dollared_strings.s1": "${BLAH}" | ||
"outputs.read_dollared_strings.s2": "${BLAH}" | ||
"outputs.read_dollared_strings.s3": "oops ${BLAH}" | ||
} |
32 changes: 32 additions & 0 deletions
32
centaur/src/main/resources/standardTestCases/dollars_in_strings/dollars_in_strings.wdl
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,32 @@ | ||
workflow read_dollared_strings { | ||
|
||
call dollars_in_strings | ||
|
||
String dollar = "$" | ||
|
||
output { | ||
String s1 = "${dollar}{BLAH}" | ||
String s2 = s1 | ||
|
||
String s3 = dollars_in_strings.s3 | ||
} | ||
} | ||
|
||
|
||
task dollars_in_strings { | ||
String dollar = "$" | ||
command <<< | ||
cat > foo.txt << 'EOF' | ||
oops ${dollar}{BLAH} | ||
EOF | ||
>>> | ||
output { | ||
File x = "foo.txt" | ||
String s3 = read_string(x) | ||
} | ||
runtime { | ||
docker: "ubuntu:latest" | ||
} | ||
} |
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