From 89e47698775c76dd8c3125556a14fe7e5aa7de2e Mon Sep 17 00:00:00 2001 From: Kevin Lim Date: Wed, 28 Sep 2016 14:20:51 -0700 Subject: [PATCH] fix test 2.2 check for log level Signed-off-by: Kevin Lim --- tests/2_docker_daemon_configuration.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/2_docker_daemon_configuration.sh b/tests/2_docker_daemon_configuration.sh index 3822b62..d161fa0 100644 --- a/tests/2_docker_daemon_configuration.sh +++ b/tests/2_docker_daemon_configuration.sh @@ -14,9 +14,14 @@ fi # 2.2 check_2_2="2.2 - Set the logging level" -get_docker_effective_command_line_args '-l' | grep "debug" >/dev/null 2>&1 +get_docker_effective_command_line_args '-l' >/dev/null 2>&1 if [ $? -eq 0 ]; then - warn "$check_2_2" + get_docker_effective_command_line_args '-l' | grep "info" >/dev/null 2>&1 + if [ $? -eq 0 ]; then + pass "$check_2_2" + else + warn "$check_2_2" + fi else pass "$check_2_2" fi