debian-forge-cli/cmd/image-builder
Michael Vogt f46ca14f85 image-builder: update TestBuildIntegrationErrors tests
This commit updates the tests for the error reporting. Since
we are now using the new "progress" module we can no longer
directly mock osStderr. So this now uses the new testutil
helper `CaptureStdio`.

Note also that the behavior of `verbose` and `term` is slightly
different - for backward compatibility in `verbose` mode the
stderr from osbuild is directly connected to the caller stderr.

For term mode this is not done to prevent spurious message from
leaking into the terminal progress and the full error is available
from the actual go error as captured output.
2025-01-29 15:21:33 +00:00
..
build.go main: add progress support via bibs code 2025-01-29 15:21:33 +00:00
distro.go image-builder: newline in error message 2025-01-20 06:55:24 +00:00
distro_test.go image-builder: newline in error message 2025-01-20 06:55:24 +00:00
export_test.go cmd: rework argument handling 2024-12-16 07:54:45 +00:00
filters.go cmd: implement manifest command 2024-12-16 07:54:45 +00:00
filters_test.go main: help golang-ci to find the "main" symbol in the tests 2025-01-10 08:30:28 +00:00
list.go cmd: implement manifest command 2024-12-16 07:54:45 +00:00
main.go main: add progress support via bibs code 2025-01-29 15:21:33 +00:00
main_test.go image-builder: update TestBuildIntegrationErrors tests 2025-01-29 15:21:33 +00:00
manifest.go manifest: slightly clean up directory creation 2025-01-29 11:56:14 +00:00
repos.go repos: lookup <buildin>, /{etc,usr/share}/image-builder/repositories 2025-01-09 16:17:50 +00:00