1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-22 07:09:47 +00:00

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.
This commit is contained in:
Ihor Radchenko 2022-10-13 18:28:56 +08:00
parent 3790bf8ea1
commit 97672efdb0
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B

View File

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