[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master a8bd341 22/26: Merge pull request #11 from doomvox/tap_std
From: |
Rocky Bernstein |
Subject: |
[elpa] master a8bd341 22/26: Merge pull request #11 from doomvox/tap_stdout |
Date: |
Thu, 25 May 2017 02:22:16 -0400 (EDT) |
branch: master
commit a8bd3417854a7b9ef9ed75af3d5620661e4377a1
Merge: e199434 187808a
Author: R. Bernstein <address@hidden>
Commit: GitHub <address@hidden>
Merge pull request #11 from doomvox/tap_stdout
TAP output in batch mode now goes to stdout, not stderr
---
test-simple.el | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/test-simple.el b/test-simple.el
index 408be8e..1fda8a5 100644
--- a/test-simple.el
+++ b/test-simple.el
@@ -289,13 +289,17 @@ additional message to be displayed."
(interactive)
(unless test-info (setq test-info test-simple-info))
(test-simple-describe-failures test-info)
- (if noninteractive
- (progn
- (switch-to-buffer "*test-simple*")
- (message "%s" (buffer-substring (point-min) (point-max)))
- )
- (switch-to-buffer-other-window "*test-simple*")
- ))
+ (cond (noninteractive
+ (set-buffer "*test-simple*")
+ (cond ((getenv "USE_TAP")
+ (princ (format "%s\n" (buffer-string)))
+ )
+ (t ;; non-TAP goes to stderr (backwards compatibility)
+ (message "%s" (buffer-substring (point-min) (point-max)))
+ )))
+ (t ;; interactive
+ (switch-to-buffer-other-window "*test-simple*")
+ )))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Reporting
- [elpa] master 9b35c3a 01/26: Use %S to print expected/actual message., (continued)
- [elpa] master 9b35c3a 01/26: Use %S to print expected/actual message., Rocky Bernstein, 2017/05/25
- [elpa] master 2cbec07 02/26: Merge pull request #6 from rubikitch/better-failure-message, Rocky Bernstein, 2017/05/25
- [elpa] master 9a0f304 06/26: New function `test-simple-run': register test, Rocky Bernstein, 2017/05/25
- [elpa] master fc5c159 11/26: test-simple-run: make it a command., Rocky Bernstein, 2017/05/25
- [elpa] master 01f08e3 05/26: Document targets "check-short" and "install-short", Rocky Bernstein, 2017/05/25
- [elpa] master 46890e0 03/26: Rename test-gcd.el -> gcd-tests.el to comply with Melpa, Rocky Bernstein, 2017/05/25
- [elpa] master d857417 04/26: Merge pull request #8 from rubikitch/rename-test-filename, Rocky Bernstein, 2017/05/25
- [elpa] master 536ce2f 14/26: Remove unused lexical variables noted in byte compilation, Rocky Bernstein, 2017/05/25
- [elpa] master c7987a6 07/26: Emacs exits abnormally when noninteractive test fails., Rocky Bernstein, 2017/05/25
- [elpa] master d9abe19 08/26: gcd-tests.el: Add test-simple-run comment line, Rocky Bernstein, 2017/05/25
- [elpa] master a8bd341 22/26: Merge pull request #11 from doomvox/tap_stdout,
Rocky Bernstein <=
- [elpa] master 6fd325b 17/26: Merge pull request #10 from syohex/switch-to-cask, Rocky Bernstein, 2017/05/25
- [elpa] master 611bd94 16/26: Switch from Carton to Cask, Rocky Bernstein, 2017/05/25
- [elpa] master e199434 20/26: Minor changes, Rocky Bernstein, 2017/05/25
- [elpa] master 8204b89 10/26: .travis.yml: Drop support of Emacs23 (Test in Emacs24), Rocky Bernstein, 2017/05/25
- [elpa] master 35ef95d 09/26: Mention test-simple-run in README.md, Rocky Bernstein, 2017/05/25
- [elpa] master 613fe8b 19/26: Version 1.2.0 sync with elpa, Rocky Bernstein, 2017/05/25
- [elpa] master 604942d 24/26: Merge pull request #12 from syohex/cl-lib, Rocky Bernstein, 2017/05/25
- [elpa] master a2383c7 26/26: Bump version .., Rocky Bernstein, 2017/05/25
- [elpa] master e18adb1 25/26: Merge commit '604942d36021a8b14877a0a640234a09c79e0927', Rocky Bernstein, 2017/05/25
- [elpa] master 187808a 21/26: TAP output in batch mode now goes to stdout, not stderr, Rocky Bernstein, 2017/05/25