Jelajahi Sumber

fixup! ob-shell: Fix multi-line scripts in sessions

Ihor Radchenko 2 tahun lalu
induk
melakukan
a83edd624b
1 mengubah file dengan 5 tambahan dan 3 penghapusan
  1. 5 3
      testing/lisp/test-ob-shell.el

+ 5 - 3
testing/lisp/test-ob-shell.el

@@ -48,9 +48,11 @@ ob-comint.el, which was not previously tested."
     (should res)
     (should (listp res)))
   ;; Test multi-line input.
-  (let ((res (org-babel-execute:sh "if true; then\necho \"yes\"\nfi" '((:session . "yes")))))
-    (should res)
-    (should (string= "yes" res))))
+  (let ((result (org-babel-execute:sh
+		 "if true \n then \n echo yes \n fi"
+		 '((:session . "yes")))))
+    (should result)
+    (should (string= "yes" result))))
 
 ; A list of tests using the samples in ob-shell-test.org
 (ert-deftest ob-shell/generic-uses-no-arrays ()