Skip to content

Commit 82532b1

Browse files
committed
debug
Signed-off-by: ChengyuZhu6 <[email protected]>
1 parent 2db28f3 commit 82532b1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cmd/nerdctl/container/container_run_soci_linux_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ func TestRunSoci(t *testing.T) {
4343
testCase.NoParallel = true
4444

4545
testCase.Setup = func(data test.Data, helpers test.Helpers) {
46+
helpers.Command("image", "inspect", testutil.FfmpegSociImage).Run(&test.Expected{
47+
Output: func(stdout string, t tig.T) {
48+
t.Log("DEBUG: Image inspect output:", stdout)
49+
},
50+
})
51+
4652
helpers.Custom("mount").Run(&test.Expected{
4753
ExitCode: 0,
4854
Output: func(stdout string, t tig.T) {
@@ -56,6 +62,7 @@ func TestRunSoci(t *testing.T) {
5662
}
5763

5864
testCase.Command = func(data test.Data, helpers test.Helpers) test.TestableCommand {
65+
t.Log("DEBUG: Executing command: nerdctl --snapshotter=soci run --rm", testutil.FfmpegSociImage)
5966
return helpers.Command("--snapshotter=soci", "run", "--rm", testutil.FfmpegSociImage)
6067
}
6168

@@ -64,6 +71,7 @@ func TestRunSoci(t *testing.T) {
6471
Output: func(stdout string, t tig.T) {
6572
var afterCount int
6673
beforeCount, _ := strconv.Atoi(data.Labels().Get("beforeCount"))
74+
t.Log("DEBUG: Command stdout:", stdout)
6775

6876
helpers.Custom("mount").Run(&test.Expected{
6977
Output: func(stdout string, t tig.T) {

0 commit comments

Comments
 (0)