From 6087c6a1c1883aeedb287b95695fa6e8a6591b1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20C=C3=A9sar=20Su=C3=A1stegui?= Date: Mon, 20 Jul 2026 23:48:14 -0600 Subject: [PATCH] Fix #185: report package test output paths --- testing/baselines/tests.install-force-test-fail/out | 2 +- testing/baselines/tests.upgrade-test-fail/out | 2 +- zeekpkg/manager.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/testing/baselines/tests.install-force-test-fail/out b/testing/baselines/tests.install-force-test-fail/out index a8caf1d7..5b844a3d 100644 --- a/testing/baselines/tests.install-force-test-fail/out +++ b/testing/baselines/tests.install-force-test-fail/out @@ -1,6 +1,6 @@ ### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63. === install without skiptests -error: failed to run tests for one<...>/foo: test_command failed with exit code 1 +error: failed to run tests for one<...>/foo: test_command failed with exit code 1; stdout: <...>/zkg.test_command.stdout; stderr: <...>/zkg.test_command.stderr Running unit tests for "one<...>/foo" have_load_foo=0 === install with skiptests diff --git a/testing/baselines/tests.upgrade-test-fail/out b/testing/baselines/tests.upgrade-test-fail/out index 206a270a..5ba32e95 100644 --- a/testing/baselines/tests.upgrade-test-fail/out +++ b/testing/baselines/tests.upgrade-test-fail/out @@ -3,7 +3,7 @@ Installing "one<...>/foo" Installed "one<...>/foo" (1.0.2) Loaded "one<...>/foo" === upgrade without skiptests -error: failed to run tests for one<...>/foo: test_command failed with exit code 1 +error: failed to run tests for one<...>/foo: test_command failed with exit code 1; stdout: <...>/zkg.test_command.stdout; stderr: <...>/zkg.test_command.stderr Running unit tests for "one<...>/foo" === upgrade with skiptest Upgraded "one<...>/foo" (1.0.3) diff --git a/zeekpkg/manager.py b/zeekpkg/manager.py index a11cd8cb..0ebec8f9 100644 --- a/zeekpkg/manager.py +++ b/zeekpkg/manager.py @@ -2783,7 +2783,8 @@ def test( if rc != 0: assert stage.state_dir return ( - f"test_command failed with exit code {rc}", + f"test_command failed with exit code {rc}; " + f"stdout: {outfile}; stderr: {errfile}", False, stage.state_dir, )