Skip to content

Commit 5b7ad26

Browse files
authored
Merge pull request #263 from common-workflow-language/better-writable-test
Adjust conformance test for "writable" flag.
2 parents 1d5714d + c807103 commit 5b7ad26

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

v1.0/conformance_test_v1.0.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -771,9 +771,9 @@
771771
- job: v1.0/stagefile-job.yml
772772
output: {
773773
"outfile": {
774-
"checksum": "sha1$2d6c5e4430c4b200227cc77d3b0025082505ee19",
775-
"size": 1107,
776-
"location": "whale.txt",
774+
"checksum": "sha1$b769c7b2e316edd4b5eb2d24799b2c1f9d8c86e6",
775+
"size": 1111,
776+
"location": "bob.txt",
777777
"class": "File"
778778
}
779779
}

v1.0/v1.0/stagefile.cwl

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,20 @@ requirements:
44
InitialWorkDirRequirement:
55
listing:
66
- entry: $(inputs.infile)
7+
entryname: bob.txt
78
writable: true
89
inputs:
910
infile: File
1011
outputs:
1112
outfile:
1213
type: File
1314
outputBinding:
14-
glob: $(inputs.infile.basename)
15-
baseCommand: "sed"
16-
arguments: ["-i", "s/Ishmael/Bob/", $(inputs.infile.basename)]
15+
glob: bob.txt
16+
baseCommand: "python"
17+
arguments:
18+
- "-c"
19+
- |
20+
f = open("bob.txt", "r+")
21+
f.seek(8)
22+
f.write("Bob. ")
23+
f.close()

0 commit comments

Comments
 (0)