mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
Use hello-world instead of redis for getty test
It is a far smaller download. Also pin to a specific version to protect against the possibility of the output string changing. The new image name is a bit of a mouthful, put it (and the expected output) into a variable. Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
parent
ce35fea83e
commit
39c8b1b5e4
@ -3,6 +3,9 @@ spawn linuxkit run test-ctr
|
||||
set pid [exp_pid]
|
||||
set timeout 60
|
||||
set prompt ":~# "
|
||||
# Running $image should produce $output
|
||||
set image "docker.io/library/hello-world@sha256:f3b3b28a45160805bb16542c9531888519430e9e6d6ffc09d72261b0d26ff74f"
|
||||
set output "Hello from Docker!"
|
||||
|
||||
expect {
|
||||
timeout {
|
||||
@ -42,7 +45,7 @@ expect {
|
||||
exit 1
|
||||
}
|
||||
$prompt {
|
||||
send "dist pull docker.io/library/redis:alpine\n"
|
||||
send "dist pull $image\n"
|
||||
}
|
||||
}
|
||||
expect {
|
||||
@ -53,7 +56,7 @@ expect {
|
||||
}
|
||||
$prompt {
|
||||
puts "SUCCESS dist pull"
|
||||
send "ctr run -t docker.io/library/redis:alpine test\n"
|
||||
send "ctr run -t $image test\n"
|
||||
}
|
||||
}
|
||||
expect {
|
||||
@ -62,7 +65,7 @@ expect {
|
||||
exec kill -9 $pid
|
||||
exit 1
|
||||
}
|
||||
"Ready to accept connections" {
|
||||
$output {
|
||||
puts "SUCCESS ctr run"
|
||||
# Ctrl-C
|
||||
send "\003"
|
||||
|
Loading…
Reference in New Issue
Block a user