Skip to content

Commit 1b400c9

Browse files
spoorthyspoorthy
spoorthy
authored and
spoorthy
committed
Description: authconfig test fails as samba is not supported
Fix: Excluded samba related tests when Samba package is not installed signed-off by:spoorthy<[email protected]>
1 parent 3bf86ff commit 1b400c9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

linux-tools/authconfig/authconfig-test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ function test_winbind()
212212
grep "USEWINBINDAUTH" /etc/sysconfig/authconfig | grep -q "no"
213213
tc_pass_or_fail $? "test --disablewinbindauth failed"
214214

215+
tc_check_package samba
216+
if [ $? -eq 0 ]; then
215217
#Test smbsecurity types
216218
local smb_security_types="user server domain ads"
217219
for types in $smb_security_types; do
@@ -239,6 +241,10 @@ function test_winbind()
239241
authconfig --test 1>$stdout 2>$stderr
240242
grep "SMB workgroup" $stdout | grep -q "TESTGROUP"
241243
tc_pass_or_fail $? "test --smbworkgroup failed"
244+
245+
else
246+
tc_info "skipped samba related tests as Samba package is not installed"
247+
fi
242248
}
243249

244250
function test_hesiod()

0 commit comments

Comments
 (0)