mirror of
https://github.com/clearlinux/graphene.git
synced 2026-06-28 00:46:56 +00:00
[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.
This commit is contained in:
committed by
Wojtek Porczyk
parent
ec270d0761
commit
8fdcecfd98
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user