From 231e35df6d49e11166ac65b6333e34b8f4ea72c7 Mon Sep 17 00:00:00 2001 From: Charles Stern <62192187+cisaacstern@users.noreply.github.com> Date: Thu, 3 Aug 2023 16:45:48 -0700 Subject: [PATCH] print sterr if flink proc fails --- tests/integration/test_flink.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_flink.py b/tests/integration/test_flink.py index 631c44e3..519c2493 100644 --- a/tests/integration/test_flink.py +++ b/tests/integration/test_flink.py @@ -48,9 +48,12 @@ def test_flink_bake(minio): "-f", f.name, ] - proc = subprocess.run(cmd) + proc = subprocess.run(cmd, capture_output=True) - assert proc.returncode == 0 + if proc.returncode != 0: + print(proc.stderr.decode()) + + assert proc.returncode == 0 # bail if proc did not succeed # We should have some kinda 'has this completed?' check here # Instead, I just wait for 3min