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.
Fixes size() returning 0 for dos inputs [BA-5731] (broadinstitute#5039)
- Loading branch information
1 parent
90154ed
commit a439100
Showing
6 changed files
with
73 additions
and
9 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
centaur/src/main/resources/standardTestCases/drs_tests/wf_level_file_size.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,11 @@ | ||
version 1.0 | ||
|
||
workflow wf_level_file_size { | ||
File input1 = "dos://wb-mock-drs-dev.storage.googleapis.com/4a3908ad-1f0b-4e2a-8a92-611f2123e8b0" | ||
File input2 = "dos://wb-mock-drs-dev.storage.googleapis.com/0c8e7bc6-fd76-459d-947b-808b0605beb3" | ||
|
||
output { | ||
Float fileSize1 = size(input1) | ||
Float fileSize2 = size(input2) | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
centaur/src/main/resources/standardTestCases/drs_wf_level_file_size.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,17 @@ | ||
name: drs_wf_level_read_size | ||
testFormat: workflowsuccess | ||
backends: [Papiv2NoDockerHubConfig] | ||
|
||
files { | ||
workflow: drs_tests/wf_level_file_size.wdl | ||
} | ||
|
||
metadata { | ||
workflowName: wf_level_file_size | ||
status: Succeeded | ||
|
||
"outputs.wf_level_file_size.fileSize1": 43.0 | ||
"outputs.wf_level_file_size.fileSize2": 45.0 | ||
} | ||
|
||
|
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
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