[Snek] [PATCH] Fix make check error reporting text

Rhys Kidd rhyskidd at gmail.com
Thu Feb 13 14:12:47 PST 2020


Without this escaping, the output from a (known failing) make check
run is:

$ make check
Running test andor.py.
    pass python3
    pass snek
../ports/qemu-arm/snek-arm: 23: qemu-system-arm: not found
    ***************** aselang fail *********************
    ...

Note the final line, which should instead be reporting:

$ make check
Running test andor.py.
    pass python3
    pass snek
../ports/qemu-arm/snek-arm: 23: qemu-system-arm: not found
    ***************** snek-arm fail *********************
    ...

$ make --version
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu

Signed-off-by: Rhys Kidd <rhyskidd at gmail.com>
---
 test/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/Makefile b/test/Makefile
index 07c91b7..335388b 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -78,7 +78,7 @@ check:
 			if $$lang $$TEST; then \
 				echo "    pass $$baselang"; \
 			else \
-				echo "    ***************** $baselang fail *********************"; \
+				echo "    ***************** $$baselang fail *********************"; \
 				exit=1;\
 			fi; \
 		done; \
@@ -91,7 +91,7 @@ check:
 			if [ $$? -eq 1 ]; then \
 				echo "    pass $$baselang"; \
 			else \
-				echo "    ***************** $baselang fail *********************"; \
+				echo "    ***************** $$baselang fail *********************"; \
 				exit=1;\
 			fi; \
 		done; \
-- 
2.20.1



More information about the Snek mailing list