mirror of https://github.com/docker/docs.git
Change log driver check to be more future-safe
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
parent
ffbfb443c2
commit
f6d5c03d76
|
|
@ -12,8 +12,7 @@ load ${BASE_TEST_DIR}/helpers.bash
|
|||
|
||||
@test "$DRIVER: check created engine option (log driver)" {
|
||||
docker $(machine config $NAME) run --name nolog busybox echo this should not be logged
|
||||
run docker $(machine config $NAME) logs nolog
|
||||
run docker $(machine config $NAME) inspect -f '{{.HostConfig.LogConfig.Type}}' nolog
|
||||
echo ${output}
|
||||
[ $status -eq 0 ]
|
||||
[[ ${lines[0]} =~ "no log driver named 'none' is registered" ]]
|
||||
[ ${output} == "none" ]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue