You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/acceptance/04_examples/README.org
+54-1Lines changed: 54 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,58 @@ and =#+end_src= tags.
14
14
*NOTE:* Agent output should be *identical* between a normal execution and a dry
15
15
run. This means that some examples are poor candidates for automatic testing.
16
16
17
+
=prep= sections can not handle /heredoc/, so don't try to use them to setup an
18
+
environment, instead, use echo to build up a file.
19
+
20
+
#+CAPTION: Example error showing issue with usage of heredoc in prep
21
+
#+begin_example
22
+
Q: "...r/bin/perl /hom": processing /home/nickanderson/Northern.Tech/CFEngine/core/tests/acceptance/../../examples/execresult.cf: Running prep 'EOF'Can't exec "EOF": No such file or directory at /home/nickanderson/Northern.Tech/CFEngine/core/tests/acceptance/../../examples/remake_outputs.pl line 227.
23
+
#+end_example
24
+
25
+
So, don't do this:
26
+
27
+
#+CAPTION: BAD: example using heredoc inside prep section
0 commit comments