Changeset: 8314e24baf17 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8314e24baf17
Modified Files:
        common/stream/Tests/urlstream.py
        common/stream/Tests/urlstream.stable.out
Branch: makelibstreamgreatagain
Log Message:

Improve urlstream test output and approve


diffs (32 lines):

diff --git a/common/stream/Tests/urlstream.py b/common/stream/Tests/urlstream.py
--- a/common/stream/Tests/urlstream.py
+++ b/common/stream/Tests/urlstream.py
@@ -69,9 +69,10 @@ url = f'http://localhost:{port}'
 def streamcat(suffix):
     u = url + suffix
     cmd = ['streamcat', 'read', u, 'urlstream']
-    print(f'FETCHING {suffix}')
+    print(f'FETCHING {suffix}', end="")
     PIPE = subprocess.PIPE
     p = subprocess.run(cmd, check=False, stdout=PIPE, stderr=PIPE, timeout=10)
+    print(f' yielded return code {p.returncode}')
     return (p.returncode, p.stdout, p.stderr)
 
 
diff --git a/common/stream/Tests/urlstream.stable.out 
b/common/stream/Tests/urlstream.stable.out
--- a/common/stream/Tests/urlstream.stable.out
+++ b/common/stream/Tests/urlstream.stable.out
@@ -5,9 +5,10 @@ stdout of test 'urlstream` in directory 
 # 11:20:38 >  "/usr/bin/python3.7" "urlstream.py" "urlstream"
 # 11:20:38 >  
 
-Listening on 5555
-FETCHING /42a
-FETCHING /40Ka
+#Listening on 41153
+FETCHING /42a yielded return code 0
+FETCHING /40Ka yielded return code 0
+FETCHING /xyzzy yielded return code 2
 
 # 11:20:39 >  
 # 11:20:39 >  "Done."
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to