Skip to content

Commit

Permalink
Merge pull request #137 from tionis/test
Browse files Browse the repository at this point in the history
don't print colored output in test when not (os/isatty)
  • Loading branch information
bakpakin authored Jul 13, 2023
2 parents acd22a4 + 02afb2c commit b36bc39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spork/test.janet
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
(def ,xx ,x)
(if ,xx (++ (',tests-passed-ref 0)))
(as-macro ,unless ,xx
(,prin "\e[31m✘\e[0m ")
(if (os/isatty)
(,prin "\e[31m✘\e[0m ")
(,prin "[FAIL] "))
(,print ,e))
,xx))

Expand Down

0 comments on commit b36bc39

Please sign in to comment.