Changeset: 8f1be1e2aa0b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/8f1be1e2aa0b
Modified Files:
        common/stream/Tests/urlstream.py
Branch: default
Log Message:

Make the urlstream.py test write more information to stderr


diffs (25 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
@@ -72,10 +72,13 @@ url = f'http://localhost:{port}'
 def streamcat(suffix):
     u = url + suffix
     cmd = ['streamcat', 'read', u, 'urlstream']
-    print(f'FETCHING {suffix}', end="", file=OUTPUT)
+    print(f'FETCHING {suffix}', file=OUTPUT)
     PIPE = subprocess.PIPE
     p = subprocess.run(cmd, check=False, stdout=PIPE, stderr=PIPE, timeout=10)
     print(f' yielded return code {p.returncode}', file=OUTPUT)
+    print(f' wrote {len(p.stdout)} bytes to stdout', file=OUTPUT)
+    if p.stderr:
+        print(f' stderr={p.stderr!r}', file=OUTPUT)
     return (p.returncode, p.stdout, p.stderr)
 
 def run_tests():
@@ -101,5 +104,5 @@ try:
 except Exception as e:
     output = OUTPUT.getvalue()
     if output:
-        print(output)
+        print(output, file=sys.stderr)
     raise e
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to