@@ -36,6 +36,12 @@ 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
+ if nerdtest .IsDocker () {
43
+ helpers .Ensure ("pull" , testutil .CommonImage )
44
+ }
39
45
helpers .Ensure ("run" , "-d" , "--name" , data .Identifier (), testutil .CommonImage , "sleep" , "infinity" )
40
46
nerdtest .EnsureContainerStarted (helpers , data .Identifier ())
41
47
helpers .Ensure ("exec" , data .Identifier (), "sh" , "-euxc" , `echo hello-test-commit > /foo` )
@@ -59,6 +65,10 @@ func TestCommit(t *testing.T) {
59
65
helpers .Anyhow ("rmi" , "-f" , data .Identifier ())
60
66
},
61
67
Setup : func (data test.Data , helpers test.Helpers ) {
68
+ // See note above about docker failing.
69
+ if nerdtest .IsDocker () {
70
+ helpers .Ensure ("pull" , testutil .CommonImage )
71
+ }
62
72
helpers .Ensure ("run" , "-d" , "--name" , data .Identifier (), testutil .CommonImage , "sleep" , "infinity" )
63
73
nerdtest .EnsureContainerStarted (helpers , data .Identifier ())
64
74
helpers .Ensure ("exec" , data .Identifier (), "sh" , "-euxc" , `echo hello-test-commit > /foo` )
0 commit comments