Change log driver check to be more future-safe

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
This commit is contained in:
Nathan LeClaire 2015-11-18 16:26:56 -08:00
parent ffbfb443c2
commit f6d5c03d76
1 changed files with 2 additions and 3 deletions

View File

@ -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" ]
}