Re: [O] Need help on my writing org-mode test.

2018-04-23 Thread Nicolas Goaziou
Hello, stardiviner writes: > @Nicolas, does current existing testing should be updated to #+begin_src > shell? Even though they all test passed currently. I don't think so. "begin_src sh" and "begin_src shell" are not equivalent, e.g., sometimes, "begin_src shell" could be "begin_src bash". IOW

Re: [O] Need help on my writing org-mode test.

2018-04-10 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 After long time Edebug and many print info try. Unbelievable that this is caused by my ert test is using: #+begin_src sh (which I copy from other existing testing example.) I remember this "sh" is deprecated. After I change to "shell", test passed.

Re: [O] Need help on my writing org-mode test.

2018-04-08 Thread Nicolas Goaziou
Hello, stardiviner writes: > I'm try to write a test for following src block: > > #+begin_src sh :results link :file "test.txt" > echo "hello" > test.txt > echo "test" > #+end_src > > > #+RESULTS[<2018-04-08 18:30:51> 22a787defa349526768722f4bfc8509dd16ab154]: > [[file:test.txt]] > > And here is

[O] Need help on my writing org-mode test.

2018-04-08 Thread stardiviner
I'm try to write a test for following src block: #+begin_src sh :results link :file "test.txt" echo "hello" > test.txt echo "test" #+end_src #+RESULTS[<2018-04-08 18:30:51> 22a787defa349526768722f4bfc8509dd16ab154]: [[file:test.txt]] And here is my ert test: (ert-deftest test-ob/result-file-lin