From 1b400c9cc3d9272b4f70c263e7e8c04bf6d42dac Mon Sep 17 00:00:00 2001 From: spoorthy Date: Wed, 11 Apr 2018 10:15:23 +0530 Subject: [PATCH] Description: authconfig test fails as samba is not supported Fix: Excluded samba related tests when Samba package is not installed signed-off by:spoorthy --- linux-tools/authconfig/authconfig-test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/linux-tools/authconfig/authconfig-test.sh b/linux-tools/authconfig/authconfig-test.sh index e53ba47d9..ebc8f1821 100755 --- a/linux-tools/authconfig/authconfig-test.sh +++ b/linux-tools/authconfig/authconfig-test.sh @@ -212,6 +212,8 @@ function test_winbind() grep "USEWINBINDAUTH" /etc/sysconfig/authconfig | grep -q "no" tc_pass_or_fail $? "test --disablewinbindauth failed" + tc_check_package samba + if [ $? -eq 0 ]; then #Test smbsecurity types local smb_security_types="user server domain ads" for types in $smb_security_types; do @@ -239,6 +241,10 @@ function test_winbind() authconfig --test 1>$stdout 2>$stderr grep "SMB workgroup" $stdout | grep -q "TESTGROUP" tc_pass_or_fail $? "test --smbworkgroup failed" + + else + tc_info "skipped samba related tests as Samba package is not installed" + fi } function test_hesiod()