Skip to content

Commit 97672ef

Browse files
committed
testing/lisp/test-ob-eshell.el: Fix tests
* testing/lisp/test-ob-eshell.el (ob-eshell/execute): (ob-eshell/variables-assignment): Do not expect `org-babel-execute-src-block' to return the actual inserted src block string.
1 parent 3790bf8 commit 97672ef

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

testing/lisp/test-ob-eshell.el

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
3434
"#+begin_src eshell
3535
echo 2
3636
#+end_src"
37-
(org-babel-execute-src-block))
37+
(org-babel-execute-src-block)
38+
(goto-char (org-babel-where-is-src-block-result))
39+
(forward-line)
40+
(buffer-substring-no-properties (point) (line-end-position)))
3841
": 2")))
3942

4043
(ert-deftest ob-eshell/variables-assignment ()
@@ -45,7 +48,10 @@ echo 2
4548
"#+begin_src eshell :var hi=\"hello, world\"
4649
echo $hi
4750
#+end_src"
48-
(org-babel-execute-src-block))
51+
(org-babel-execute-src-block)
52+
(goto-char (org-babel-where-is-src-block-result))
53+
(forward-line)
54+
(buffer-substring-no-properties (point) (line-end-position)))
4955
": hello, world")))
5056

5157
(ert-deftest ob-eshell/session ()

0 commit comments

Comments
 (0)