set -e

echo ''
$NXF_RUN | tee stdout 

[[ `< .nextflow.log grep -c 'Submitted process > foo'` == 1 ]] || false
[[ `< .nextflow.log grep -c 'Re-submitted process > foo'` == 1 ]] || false

[[ `< stdout grep -c 'DONE - mem: 2 GB - time: 2h'` == 1 ]] || false