common-workflow-language / common-workflow-language/cwltest

test failed, not sure why

Open
#94 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
20
Forks
19
Avg merge
1h 45m
Merged PRs (30d)
3

Description

Hi,
I am having problems passing test 107 with my implementation and do not understand what is wrong. The File object for file `a` should be what is expected, still cwltest complains. Any ideas?

```bash
Test [107/197] Test if a writable input directory is recursively copied and writable
Test 107 failed: /go/bin/awe-cwl-submitter-wrapper.sh --outdir=/tmp/tmp2k39bljr --quiet v1.0/recursive-input-directory.cwl v1.0/recursive-input-directory.yml
Test if a writable input directory is recursively copied and writable
Compare failure expected: {
"output_dir": {
"basename": "work_dir",
"class": "Directory",
"listing": [
{
"basename": "a",
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"class": "File",
"location": "work_dir/a",
"size": 0
},
{
"basename": "b",
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"class": "File",
"location": "work_dir/b",
"size": 0
},
{
"basename": "c",
"class": "Directory",
"listing": [
{
"basename": "d",
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"class": "File",
"location": "work_dir/c/d",
"size": 0
}
],
"location": "work_dir/c"
},
{
"basename": "e",
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"class": "File",
"location": "work_dir/e",
"size": 0
}
],
"location": "work_dir"
},
"test_result": {
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"class": "File",
"location": "output.txt",
"size": 0
}
}
got: {
"output_dir": {
"basename": "work_dir",
"class": "Directory",
"listing": [
{
"basename": "a",
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"class": "File",
"location": "work_dir/a",
"size": 0
},
{
"basename": "c",
"class": "Directory",
"listing": [
{
"basename": "d",
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"class": "File",
"location": "work_dir/c/d",
"size": 0
}
],
"location": "c"
},
{
"basename": "e",
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"class": "File",
"location": "work_dir/e",
"size": 0
},
{
"basename": "b",
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"class": "File",
"location": "work_dir/b",
"size": 0
}
],
"location": "work_dir"
},
"test_result": {
"basename": "output.txt",
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"class": "File",
"location": "input_807229205/output.txt",
"nameext": ".txt",
"size": 0
}
}
caused by: failed comparison for key 'output_dir': expected: {
"basename": "work_dir",
"class": "Directory",
"listing": [
{
"basename": "a",
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"class": "File",
"location": "work_dir/a",
"size": 0
},
{
"basename": "b",
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"class": "File",
"location": "work_dir/b",
"size": 0
},
{
"basename": "c",
"class": "Directory",
"listing": [
{
"basename": "d",
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"class": "File",
"location": "work_dir/c/d",
"size": 0
}
],
"location": "work_dir/c"
},
{
"basename": "e",
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"class": "File",
"location": "work_dir/e",
"size": 0
}
],
"location": "work_dir"
}
got: {
"basename": "work_dir",
"class": "Directory",
"listing": [
{
"basename": "a",
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"class": "File",
"location": "work_dir/a",
"size": 0
},
{
"basename": "c",
"class": "Directory",
"listing": [
{
"basename": "d",
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"class": "File",
"location": "work_dir/c/d",
"size": 0
}
],
"location": "c"
},
{
"basename": "e",
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"class": "File",
"location": "work_dir/e",
"size": 0
},
{
"basename": "b",
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"class": "File",
"location": "work_dir/b",
"size": 0
}
],
"location": "work_dir"
}
caused by: {
"basename": "a",
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
"class": "File",
"location": "work_dir/a",
"size": 0
} not found
0 tests passed, 1 failures, 0 unsupported features

1 tool tests failed
```

thx

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.