From 8fdcecfd98489e43960aa707d569b009cc7ef691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kowalczyk?= Date: Wed, 4 Nov 2020 01:47:52 +0100 Subject: [PATCH] [Examples] python-simple: Fix test on debug builds On debug builds, the standard output is littered with debug log from graphene, so this likely never worked properly. This wasn't catched by jenkins either. --- Examples/python-simple/run-tests.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Examples/python-simple/run-tests.sh b/Examples/python-simple/run-tests.sh index 97436536..c981148e 100755 --- a/Examples/python-simple/run-tests.sh +++ b/Examples/python-simple/run-tests.sh @@ -23,6 +23,9 @@ echo -e "\n\nRunning HTTP client test-http.py:" ./pal_loader python.manifest scripts/test-http.py localhost 8005 > OUTPUT1 wget -q http://localhost:8005/ -O OUTPUT2 echo >> OUTPUT2 # include newline since wget doesn't add it -diff -q OUTPUT1 OUTPUT2 && echo "[ Success 3/3 ]" +# check if all lines from OUTPUT2 are included in OUTPUT1 +# TODO: simplify after fixing Graphene logging subsystem, which currently mixes its output with the +# application output. +diff OUTPUT1 OUTPUT2 | grep -q '^>' || echo "[ Success 3/3 ]" kill "$(cat server.PID)" rm -f OUTPUT1 OUTPUT2 server.PID