add nextflow d30e48d
This commit is contained in:
21
nextflow/tests/checks/error-finish.nf/.checks
Normal file
21
nextflow/tests/checks/error-finish.nf/.checks
Normal file
@@ -0,0 +1,21 @@
|
||||
set -e
|
||||
export NXF_ASSETS=$PWD/assets
|
||||
|
||||
#
|
||||
# First run test `success` is `true`
|
||||
#
|
||||
set +e
|
||||
echo ''
|
||||
$NXF_RUN > stdout
|
||||
status=$?
|
||||
set -e
|
||||
# the exit status must NOT be zero because the pipeline throws an error
|
||||
[ $status -ne 0 ] || false
|
||||
|
||||
[[ `grep 'INFO' .nextflow.log | grep -c 'Submitted process > foo'` == 3 ]] || false
|
||||
|
||||
[[ `grep -c 'success: false' stdout` == 1 ]] || false
|
||||
[[ `grep -c 'exitStatus: 99' stdout` == 1 ]] || false
|
||||
|
||||
[[ `grep -c 'run_1' stdout` == 1 ]] || false
|
||||
[[ `grep -c 'run_2' stdout` == 1 ]] || false
|
||||
Reference in New Issue
Block a user