Skip to content

Commit

Permalink
trace in debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jjkoehorst committed Oct 12, 2022
1 parent 26fec21 commit d01a0df
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cwltool/provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ def add_data_file(
else:
# This still shows up when no_listing
_logger.debug("[provenance] File: %s", str(from_fp))
traceback.print_stack()
_logger.debug(traceback.print_stack())
_logger.debug("[provenance] Added data file %s", path)
if timestamp is not None:
createdOn, createdBy = self._self_made(timestamp)
Expand Down
81 changes: 81 additions & 0 deletions tests/wf/directory_no_listing_nested.cwl
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#!/usr/bin/env cwl-runner
cwlVersion: v1.2
class: Workflow

doc: >
Inspect provided directory and return filenames.
Generate a new directory and return it (including content).

hints:
- class: DockerRequirement
dockerPull: docker.io/debian:stable-slim

inputs:
dir:
type: Directory?
loadListing: no_listing
ignore:
type: Directory?
loadListing: no_listing
ignore_no_info:
type: Directory?
loadListing: no_listing


steps:
ls:
in:
dir: dir
ignore: ignore
out:
[listing]
run:
class: CommandLineTool
baseCommand: ls
inputs:
dir:
type: Directory
inputBinding:
position: 1
ignore:
type: Directory
inputBinding:
position: 2
outputs:
listing:
type: stdout

generate:
in: []
out:
[dir1]
run:
class: CommandLineTool
requirements:
ShellCommandRequirement: {}
LoadListingRequirement:
loadListing: deep_listing

arguments:
- shellQuote: false
valueFrom: >
pwd;
mkdir -p dir1/a/b;
echo -n a > dir1/a.txt;
echo -n b > dir1/a/b.txt;
echo -n c > dir1/a/b/c.txt;
inputs: []
outputs:
dir1:
type: Directory
outputBinding:
glob: "dir1"

outputs:
output_1:
type: File
outputSource: ls/listing
output_2:
type: Directory
outputSource: generate/dir1

0 comments on commit d01a0df

Please sign in to comment.