From de40e439d1a4d110a47d5a0701741493a285143c Mon Sep 17 00:00:00 2001 From: Martyn Jago Date: Wed, 21 Sep 2011 22:01:16 +0100 Subject: [PATCH] Bypass test where dependencies missing * testing/lisp/test-ob-R.el: If R or ESS are missing don't run test but add NOTE to this effect in test backtrace --- testing/lisp/test-ob-R.el | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/testing/lisp/test-ob-R.el b/testing/lisp/test-ob-R.el index 1fe63a5..457bf9c 100644 --- a/testing/lisp/test-ob-R.el +++ b/testing/lisp/test-ob-R.el @@ -16,9 +16,13 @@ (require 'ob-R) (ert-deftest test-ob-R/simple-session () - (org-test-with-temp-text - "#+begin_src R :session R\n paste(\"Yep!\")\n#+end_src\n" - (should (string= "Yep!" (org-babel-execute-src-block))))) + (if (and (featurep 'ess) + (eql 0 (shell-command org-babel-R-command))) + (org-test-with-temp-text + "#+begin_src R :session R\n paste(\"Yep!\")\n#+end_src\n" + (should (string= "Yep!" (org-babel-execute-src-block)))) + (message "NOTE: =test-ob-R/simple-session= NOT run! + R and ESS are required to run =test-ob-R/simple-session="))) (provide 'test-ob-R) -- 1.7.3.4