From 465c0d5e7be15c71ab3c8e3b3320b1ce5b436449 Mon Sep 17 00:00:00 2001 From: Ben Sherman Date: Tue, 7 Jan 2025 08:45:06 -0600 Subject: [PATCH] Fix flaky docs snippet (#5646) Signed-off-by: Ben Sherman --- docs/snippets/process-out-eval.nf | 5 +++-- docs/snippets/process-out-eval.out | 7 +------ docs/snippets/process-stdout.nf | 1 + 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/docs/snippets/process-out-eval.nf b/docs/snippets/process-out-eval.nf index 58081aafc7..eb879f628f 100644 --- a/docs/snippets/process-out-eval.nf +++ b/docs/snippets/process-out-eval.nf @@ -1,9 +1,10 @@ process sayHello { output: - eval('bash --version') + eval('echo Hello world!') + script: """ - echo Hello world! + true """ } diff --git a/docs/snippets/process-out-eval.out b/docs/snippets/process-out-eval.out index 9c08b97a7a..6769dd60bd 100644 --- a/docs/snippets/process-out-eval.out +++ b/docs/snippets/process-out-eval.out @@ -1,6 +1 @@ -GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu) -Copyright (C) 2020 Free Software Foundation, Inc. -License GPLv3+: GNU GPL version 3 or later - -This is free software; you are free to change and redistribute it. -There is NO WARRANTY, to the extent permitted by law. \ No newline at end of file +Hello world! \ No newline at end of file diff --git a/docs/snippets/process-stdout.nf b/docs/snippets/process-stdout.nf index 803957c778..24a55b1126 100644 --- a/docs/snippets/process-stdout.nf +++ b/docs/snippets/process-stdout.nf @@ -2,6 +2,7 @@ process sayHello { output: stdout + script: """ echo Hello world! """