add nextflow d30e48d
This commit is contained in:
23
nextflow/tests/checks/error.nf/.checks
Normal file
23
nextflow/tests/checks/error.nf/.checks
Normal file
@@ -0,0 +1,23 @@
|
||||
set -e
|
||||
|
||||
#
|
||||
# run normal mode
|
||||
#
|
||||
$NXF_RUN -c .config | tee stdout
|
||||
|
||||
[[ `grep 'INFO' .nextflow.log | grep -c 'Submitted process > task1'` == 3 ]] || false
|
||||
[[ `grep 'INFO' .nextflow.log | grep -c 'Submitted process > task2'` == 3 ]] || false
|
||||
|
||||
[[ `grep 'NOTE' .nextflow.log | grep -E -c "Process .* terminated with an error exit status"` == 3 ]] || false
|
||||
|
||||
|
||||
#
|
||||
# RESUME mode
|
||||
#
|
||||
echo ''
|
||||
$NXF_RUN -c .config -resume | tee stdout
|
||||
|
||||
[[ `grep 'INFO' .nextflow.log | grep -c 'Submitted process > task1'` == 3 ]] || false
|
||||
[[ `grep 'INFO' .nextflow.log | grep -c 'Cached process > task2'` == 3 ]] || false
|
||||
|
||||
[[ `grep 'NOTE' .nextflow.log | grep -E -c "Process .* terminated with an error exit status"` == 3 ]] || false
|
||||
1
nextflow/tests/checks/error.nf/.config
Normal file
1
nextflow/tests/checks/error.nf/.config
Normal file
@@ -0,0 +1 @@
|
||||
process.errorStrategy = { task.exitStatus >= 1 ? 'retry' : 'ignore' }
|
||||
Reference in New Issue
Block a user