Skip to content

Commit 29315e1

Browse files
committed
Fix e2e test
Signed-off-by: Ben Sherman <[email protected]>
1 parent cac11f9 commit 29315e1

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

tests/checks/params-dsl.nf/.checks

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
11

22
echo "Test successful run"
3+
echo
34
$NXF_RUN --input ./data &> stdout
45

5-
[[ $(grep -c 'params.input = [./data]' stdout) == 1 ]] || false
6-
[[ $(grep -c 'params.save_intermeds = false' stdout) == 1 ]] || false
6+
< stdout grep -F 'params.input = [./data]'
7+
< stdout grep -F 'params.save_intermeds = false'
78

9+
echo
810
echo "Test missing required param"
11+
echo
912
$NXF_RUN &> stdout
1013

11-
[[ $(grep -c 'Parameter `input` is required' stdout) == 1 ]] || false
14+
< stdout grep -F 'Parameter `input` is required'
1215

16+
echo
1317
echo "Test overwrite script param from config profile"
18+
echo
1419
$NXF_RUN -c ../../params-dsl.config -profile test &> stdout
1520

16-
[[ $(grep -c 'params.input = [alpha, beta, delta]' stdout) == 1 ]] || false
17-
[[ $(grep -c 'params.save_intermeds = true' stdout) == 1 ]] || false
21+
< stdout grep -F 'params.input = [alpha, beta, delta]'
22+
< stdout grep -F 'params.save_intermeds = true'
1823

24+
echo
1925
echo "Test invalid param"
26+
echo
2027
$NXF_RUN --inputs ./data &> stdout
2128

22-
[[ $(grep -c 'Parameter `inputs` was specified' stdout) == 1 ]] || false
29+
< stdout grep -F 'Parameter `inputs` was specified'

0 commit comments

Comments
 (0)