@@ -36,6 +36,10 @@ func TestCommit(t *testing.T) {
36
36
helpers .Anyhow ("rmi" , "-f" , data .Identifier ())
37
37
},
38
38
Setup : func (data test.Data , helpers test.Helpers ) {
39
+ // FIXME: short of pulling first, docker will fail to start the container.
40
+ // Debugging shows container exited immediately. Nothing in the container logs. Not much in journalctl.
41
+ // It is not clear what is happening.
42
+ helpers .Ensure ("pull" , testutil .CommonImage )
39
43
helpers .Ensure ("run" , "-d" , "--name" , data .Identifier (), testutil .CommonImage , "sleep" , "infinity" )
40
44
nerdtest .EnsureContainerStarted (helpers , data .Identifier ())
41
45
helpers .Ensure ("exec" , data .Identifier (), "sh" , "-euxc" , `echo hello-test-commit > /foo` )
@@ -59,6 +63,8 @@ func TestCommit(t *testing.T) {
59
63
helpers .Anyhow ("rmi" , "-f" , data .Identifier ())
60
64
},
61
65
Setup : func (data test.Data , helpers test.Helpers ) {
66
+ // See note above about docker failing.
67
+ helpers .Ensure ("pull" , testutil .CommonImage )
62
68
helpers .Ensure ("run" , "-d" , "--name" , data .Identifier (), testutil .CommonImage , "sleep" , "infinity" )
63
69
nerdtest .EnsureContainerStarted (helpers , data .Identifier ())
64
70
helpers .Ensure ("exec" , data .Identifier (), "sh" , "-euxc" , `echo hello-test-commit > /foo` )
0 commit comments