Skip to content

Commit

Permalink
Description: authconfig test fails as samba is not supported
Browse files Browse the repository at this point in the history
Fix: Excluded samba related tests when Samba package is not installed

signed-off by:spoorthy<[email protected]>
  • Loading branch information
spoorthy authored and spoorthy committed May 2, 2018
1 parent 3bf86ff commit 1b400c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions linux-tools/authconfig/authconfig-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 1b400c9

Please sign in to comment.