File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -594,14 +594,14 @@ class TestChecksum(TestCmdLine):
594
594
595
595
def test_compute_checksum (self ):
596
596
f = cwltool .factory .Factory (compute_checksum = True , use_container = False )
597
- echo = f .make (get_data ("tests/wf/wc -tool.cwl" ))
597
+ echo = f .make (get_data ("tests/wf/cat -tool.cwl" ))
598
598
output = echo (file1 = {
599
599
"class" : "File" ,
600
- "location" : "tests/wf/whale.txt"
600
+ "location" : get_data ( "tests/wf/whale.txt" )
601
601
},
602
602
reverse = False
603
603
)
604
- self .assertEquals (output ['output' ]["checksum" ], "sha1$9aefd466231cf30b4e9ae5234d58d192af7bcac4 " )
604
+ self .assertEquals (output ['output' ]["checksum" ], "sha1$327fc7aedf4f6b69a42a7c8b808dc5a7aff61376 " )
605
605
606
606
def test_no_compute_checksum (self ):
607
607
test_file = "tests/wf/wc-tool.cwl"
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env cwl-runner
2
+
3
+ class: CommandLineTool
4
+ cwlVersion: v1.0
5
+
6
+ inputs :
7
+ file1: File
8
+
9
+ outputs :
10
+ output:
11
+ type : File
12
+ outputBinding : { glob : output }
13
+
14
+ baseCommand : [cat]
15
+
16
+ stdin : $(inputs.file1.path)
17
+ stdout : output
You can’t perform that action at this time.
0 commit comments