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:
parent
3790bf8ea1
commit
97672efdb0
@ -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 ()
|
||||
|
Loading…
Reference in New Issue
Block a user