Direct stdout and stderr of test zip discovery to the right output

BUG: 419549438
Test: Presubmit
Change-Id: Ib823625b6fca48fe8c7cf26f5ab03392913c6643
diff --git a/ci/test_discovery_agent.py b/ci/test_discovery_agent.py
index 3c1caf4..4099fbe 100644
--- a/ci/test_discovery_agent.py
+++ b/ci/test_discovery_agent.py
@@ -72,7 +72,8 @@
       env.update({"DISCOVERY_OUTPUT_FILE": test_discovery_output_file.name})
       logging.info(f"Calling test discovery with args: {java_args}")
       try:
-        result = subprocess.run(args=java_args, env=env, text=True, check=True)
+        result = subprocess.run(args=java_args, env=env, text=True, check=True, stdout=subprocess.PIPE,
+    stderr=subprocess.PIPE)
         logging.info(f"Test zip discovery output: {result.stdout}")
       except subprocess.CalledProcessError as e:
         raise TestDiscoveryError(