main: show output directory content after image build

This commit adds the content of the output directory when a
build is finished. This is a convenient feature to make it easier
for the users.

Thanks to Simon for suggesting this!
This commit is contained in:
Michael Vogt 2025-03-20 12:06:54 +01:00 committed by Simon de Vlieger
parent 2895e71064
commit d4c31389a9
2 changed files with 18 additions and 2 deletions

View file

@ -391,7 +391,9 @@ func TestBuildIntegrationHappy(t *testing.T) {
})
assert.NoError(t, err)
assert.Contains(t, fakeStdout.String(), `Image build successful, result in "centos-9-qcow2-x86_64"`+"\n")
assert.Contains(t, fakeStdout.String(), `Image build successful, results:
centos-9-qcow2-x86_64/centos-9-qcow2-x86_64.qcow2
`)
// ensure osbuild was run exactly one
require.Equal(t, 1, len(fakeOsbuildCmd.Calls()))