Ah, looks like a different behaviour between testparm and samba-tool testparm:
root@xenial-samba-include:~# testparm -s &>/dev/null; echo $? 0 root@xenial-samba-include:~# samba-tool testparm; echo $? ERROR: Unable to load default file 255
Ah, looks like a different behaviour between testparm and samba-tool testparm:
root@xenial- samba-include: ~# testparm -s &>/dev/null; echo $? samba-include: ~# samba-tool testparm; echo $?
0
root@xenial-
ERROR: Unable to load default file
255