branch: elpa/bash-completion
commit d65f7e018df7e83068f742a52440a69961597152
Author: Stephane Zermatten <[email protected]>
Commit: Stephane Zermatten <[email protected]>

    Skip integration tests if /bin/bash is not executable.
---
 bash-completion-test.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bash-completion-test.el b/bash-completion-test.el
index f4f68ad1df..5f6d0707a3 100644
--- a/bash-completion-test.el
+++ b/bash-completion-test.el
@@ -632,6 +632,7 @@ garbage
          (kill-buffer shell-buffer))))))
 
 (ert-deftest bash-completion-interaction-test ()
+  (skip-unless (file-executable-p bash-completion-prog))
   (should (equal
           '(nil t t ("help ") "t\n" nil nil)
           (bash-completion_test-harness
@@ -651,6 +652,7 @@ garbage
             (bash-completion-is-running))))))
 
 (ert-deftest bash-completion-setenv-test ()
+  (skip-unless (file-executable-p bash-completion-prog))
   (should (equal
           "t\n"
           (bash-completion_test-harness
@@ -659,12 +661,14 @@ garbage
              (buffer-string))))))
 
 (ert-deftest bash-completion-one-completion-test ()
+  (skip-unless (file-executable-p bash-completion-prog))
   (should (equal '(16 ("__bash_complete_wrapper "
                       ;; TODO: again, why is this duplicated?
                       "__bash_complete_wrapper "))
                 (bash-completion_test-with-shell "__bash_complete_"))))
 
 (ert-deftest bash-completion-wordbreak-completion-test ()
+  (skip-unless (file-executable-p bash-completion-prog))
   (should (equal '(3 ("/bin/"))
                 (bash-completion_test-with-shell "export PATH=/sbin:/bi"))))
 

Reply via email to