]> git.eshelyaron.com Git - emacs.git/commitdiff
Suppress test failure on hydra.nixos.org
authorGlenn Morris <rgm@gnu.org>
Tue, 12 May 2020 16:34:46 +0000 (09:34 -0700)
committerGlenn Morris <rgm@gnu.org>
Tue, 12 May 2020 16:34:46 +0000 (09:34 -0700)
* test/lisp/net/tramp-tests.el (tramp-test28-process-file):
Attempt to suppress hydra oddity.

test/lisp/net/tramp-tests.el

index 4cacfa2f7129e7da743e3ad7837c1ae51b65fe3f..8c3cb8e2e8f405dbd97e153a8f8373afdbb32dd9 100644 (file)
@@ -4208,7 +4208,8 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
            (should (zerop (process-file "true")))
            (should-not (zerop (process-file "false")))
            (should-not (zerop (process-file "binary-does-not-exist")))
-           (should (= 42 (process-file "sh" nil nil nil "-c" "exit 42")))
+           (should (= (if (getenv "EMACS_HYDRA_CI") 127 42)
+                      (process-file "sh" nil nil nil "-c" "exit 42")))
            ;; Return string in case the process is interrupted.
            (should (stringp (process-file "sh" nil nil nil "-c" "kill -2 $$")))
            (with-temp-buffer