[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/buttercup d990a98ac1 5/7: Avoid printing double lines in G
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/buttercup d990a98ac1 5/7: Avoid printing double lines in GitHub Actions |
Date: |
Thu, 28 Mar 2024 18:59:31 -0400 (EDT) |
branch: elpa/buttercup
commit d990a98ac10adf5b04b76aa71a25afc5c8899744
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Ola Nilsson <ola.nilsson@gmail.com>
Avoid printing double lines in GitHub Actions
The "terminal" used in github action does not support the use of
carriage return '\r' to move back to column zero and overwrite the
line. Carriage return will instead move to the next line.
The consequence for the buttercup batch reporer was that each spec
description was printed twice, once without color before the spec was
run and once with color once the spec had run and the result was
known. Reuse the same mechanism as for specs with descriptions
containing newlines, don't print the spec description before running
it unless color is disabled.
Fixes #181.
---
buttercup.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/buttercup.el b/buttercup.el
index 17f9cc8772..268f0a943b 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -1825,6 +1825,7 @@ Two special statuses can be listed in
(not (or buttercup-reporter-batch-quiet-statuses
;; Do not 'pre-print' in github actions unless color is
;; disabled. See #181.
+ (and (getenv "GITHUB_ACTION") buttercup-color)
(and buttercup-color
(string-match-p "[\n\v\f]" (buttercup-spec-description
spec))))))
- [nongnu] elpa/buttercup updated (be25a149fc -> a1a86b027f), ELPA Syncer, 2024/03/28
- [nongnu] elpa/buttercup e9636f8ba4 1/7: tests: Extend with-local-buttercup to handle envvars, ELPA Syncer, 2024/03/28
- [nongnu] elpa/buttercup c4e9001254 6/7: scripts/release: Don't push anything from the release script, ELPA Syncer, 2024/03/28
- [nongnu] elpa/buttercup 86e8637e32 3/7: Extract buttercup--reporter-batch-preprint-spec-p, ELPA Syncer, 2024/03/28
- [nongnu] elpa/buttercup 0868e7a9de 4/7: Use buttercup--reporter-batch-preprint-spec-p to skip \r, ELPA Syncer, 2024/03/28
- [nongnu] elpa/buttercup b46b0e29a2 2/7: Disable all colored output when the NO_COLOR env var is set, ELPA Syncer, 2024/03/28
- [nongnu] elpa/buttercup a1a86b027f 7/7: Bump version: 1.34 → 1.35, ELPA Syncer, 2024/03/28
- [nongnu] elpa/buttercup d990a98ac1 5/7: Avoid printing double lines in GitHub Actions,
ELPA Syncer <=