File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 30
30
CWLPROV = Namespace ("https://w3id.org/cwl/prov#" )
31
31
OA = Namespace ("http://www.w3.org/ns/oa#" )
32
32
33
+ NO_DATA = True
33
34
34
35
def cwltool (tmp_path : Path , * args : Any ) -> Path :
35
36
prov_folder = tmp_path / "provenance"
36
37
prov_folder .mkdir ()
37
- new_args = ["--no-data" , "--provenance" , str (prov_folder )]
38
+ new_args = ["--provenance" , str (prov_folder )]
39
+ if NO_DATA :
40
+ new_args = ["--no-data" ] + new_args
38
41
new_args .extend (args )
39
42
# Run within a temporary directory to not pollute git checkout
40
43
tmp_dir = tmp_path / "cwltool-run"
@@ -266,6 +269,9 @@ def check_folders(base_path: Path) -> None:
266
269
267
270
268
271
def check_bagit (base_path : Path ) -> None :
272
+ if NO_DATA :
273
+ return
274
+
269
275
# check bagit structure
270
276
required_files = [
271
277
"bagit.txt" ,
@@ -525,7 +531,8 @@ def check_prov(
525
531
g2 .parse (file = f , format = "nt" , publicID = nt_uri )
526
532
# TODO: Check g2 statements that it's the same UUID activity inside
527
533
# as in the outer step
528
- if directory :
534
+ # TODO check with NO_DATA being true is this then false?...
535
+ if directory and not NO_DATA :
529
536
directories = set (g .subjects (RDF .type , RO .Folder ))
530
537
assert directories
531
538
You can’t perform that action at this time.
0 commit comments