Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* add failing tests 823 * fix mistakes * black * Fix the first two MREs from #823. - Incorporates @epruesse's fix for MRE #1 - Adds a fix for MRE #2 - properly marks group jobs as finished - Some minor updates to tests * Fix tests on Windows * Skip MRE 2 from 823 on Windows due to `pipe()` output Co-authored-by: Maarten-vd-Sande <maartenvandersande@hotmail.com> Co-authored-by: Johannes Köster <johannes.koester@uni-due.de>
- Loading branch information
1 parent
95e2184
commit cfd2f89
Showing
6 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
rule all: | ||
input: | ||
"b.txt" | ||
|
||
checkpoint a: | ||
output: | ||
# to reproduce the bug: | ||
# >1 output required | ||
# one or more temp() outputs required | ||
# exception: will work if only the first output is temp() | ||
temp('a1.txt'), | ||
temp('a2.txt'), | ||
shell: | ||
"touch {output}" | ||
|
||
def _checkpoint_output(wildcards): | ||
out = checkpoints.a.get(**wildcards).output | ||
return out | ||
|
||
rule b: | ||
input: | ||
_checkpoint_output, | ||
output: | ||
'b.txt' | ||
shell: | ||
"touch {output}" | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
rule all: | ||
input: | ||
"c.txt", | ||
|
||
checkpoint a: | ||
output: | ||
"a.txt" | ||
shell: | ||
"touch {output}" | ||
|
||
rule b1: | ||
output: | ||
pipe("b.pipe") | ||
shell: | ||
"echo test > {output}" | ||
|
||
rule b2: | ||
input: | ||
"b.pipe" | ||
output: | ||
"b.txt" | ||
shell: | ||
""" | ||
cat {input} > /dev/null | ||
touch {output} | ||
""" | ||
|
||
rule c: | ||
input: | ||
"a.txt", | ||
"b.txt", | ||
output: | ||
"c.txt" | ||
shell: | ||
"touch {output}" | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters