(error-file
(and error-buffer
(with-parsed-tramp-file-name default-directory nil
- (when (getenv "EMACS_EMBA_CI")
- (tramp-test-message "Holla1"))
- (prog1
- (tramp-make-tramp-file-name
- v (tramp-make-tramp-temp-file v))
- (when (getenv "EMACS_EMBA_CI")
- (tramp-test-message "Holla2"))))))
+ (tramp-make-tramp-file-name
+ v (tramp-make-tramp-temp-file v)))))
(bname (buffer-name output-buffer))
(p (get-buffer-process output-buffer))
(dir default-directory)
(add-function
:after (process-sentinel p)
(lambda (_proc _string)
- (when (getenv "EMACS_EMBA_CI")
- (tramp-test-message "Holla3 %s" error-file))
(with-current-buffer error-buffer
(insert-file-contents-literally
error-file nil nil nil 'replace))
- (when (getenv "EMACS_EMBA_CI")
- (tramp-test-message "Holla4 %s" error-file))
(delete-file error-file))))
- (display-buffer output-buffer '(nil (allow-no-window . t))))
-
- ;; Insert error messages if they were separated.
- (when (and error-file (not (process-live-p p)))
- (when (getenv "EMACS_EMBA_CI")
- (tramp-test-message "Holla5 %s" error-file))
- (with-current-buffer error-buffer
- (insert-file-contents-literally error-file))
- (when (getenv "EMACS_EMBA_CI")
- (tramp-test-message "Holla6 %s" error-file))
- (delete-file error-file)))))
+ (display-buffer output-buffer '(nil (allow-no-window . t)))))
+
+ ;; Insert error messages if they were separated.
+ (when (and error-file (not (process-live-p p)))
+ (with-current-buffer error-buffer
+ (insert-file-contents-literally error-file))
+ (delete-file error-file))))
;; Synchronous case.
(prog1
(ert-deftest tramp-test32-shell-command ()
"Check `shell-command'."
- :tags (unless (getenv "EMACS_EMBA_CI") '(:expensive-test))
+ :tags '(:expensive-test)
(skip-unless (tramp--test-enabled))
(skip-unless (tramp--test-supports-processes-p))
;; Prior Emacs 27, `shell-file-name' was hard coded as "/bin/sh" for
(when (tramp--test-adb-p)
(skip-unless (tramp--test-emacs27-p)))
- (tramp--test-instrument-test-case (if (getenv "EMACS_EMBA_CI") 10 0)
(dolist (quoted (if (tramp--test-expensive-test-p) '(nil t) '(nil)))
(let ((tmp-name (tramp--test-make-temp-name nil quoted))
(default-directory ert-remote-temporary-file-directory)
(let ((stderr (generate-new-buffer "*stderr*")))
(unwind-protect
(with-temp-buffer
- (when (getenv "EMACS_EMBA_CI")
- (tramp--test-message "Hallo1"))
(funcall
this-shell-command
"echo foo >&2; echo bar" (current-buffer) stderr)
- (when (getenv "EMACS_EMBA_CI")
- (tramp--test-message "Hallo2"))
(should (string-equal "bar\n" (buffer-string)))
- (when (getenv "EMACS_EMBA_CI")
- (tramp--test-message "Hallo3"))
;; Check stderr.
(should
- (string-equal "foo\n" (tramp-get-buffer-string stderr)))
- (when (getenv "EMACS_EMBA_CI")
- (tramp--test-message "Hallo4")))
+ (string-equal "foo\n" (tramp-get-buffer-string stderr))))
;; Cleanup.
(ignore-errors (kill-buffer stderr))))))
(read (tramp--test-shell-command-to-string-asynchronously
"tput cols")))))
(when (natnump cols)
- (should (= cols async-shell-command-width)))))))
+ (should (= cols async-shell-command-width))))))
(tramp--test-deftest-direct-async-process tramp-test32-shell-command 'unstable)