bashism again (was: Re: LDAP tests failing)

Ralph Böhme slow at
Fri Feb 9 18:14:09 UTC 2018

On Sat, Feb 10, 2018 at 07:07:02AM +1300, Andrew Bartlett via samba-technical wrote:
> On Fri, 2018-02-09 at 13:45 +0100, Aurélien Aptel via samba-technical
> wrote:
> > Hi,
> > 
> > I've run into many LDAP tests failing since last december. As I'm not
> > really familiar with these parts I'm not really sure where to look. It
> > seems most of it is unexected "display names" so it doesn't look
> > critical but it is still failing.
> It is a bash vs sh issue that has been raised here previously and I've
> not dealt with yet.  It got broken by some changes in December. 
> Sorry!
> > FAILED:  samba4.blackbox.dbcheck.release-4-0-0.ldapcmp(none)
> > FAILED:  samba4.blackbox.upgradeprovision.release-4-0-0.ldapcmp(none)
> > FAILED:  samba4.blackbox.schemaupgrade.schema_upgrade(none)
> > FAILED:  samba4.blackbox.schemaupgrade.check_schemas_same(none)
> > FAILED:  samba4.blackbox.schemaupgrade.schema_upgrade_old(none)
> > FAILED:  samba4.blackbox.schemaupgrade.check_schemas_same_old(none)
> > FAILED:  samba4.blackbox.functionalprep.check_databases_same(none)
> > FAILED:  samba4.blackbox.functionalprep.schema_upgrade(none)
> > FAILED:  samba4.blackbox.functionalprep.functional_prep_old(none)
> Clearly I'm not doing well at getting to fixing it, so if you can look
> at the previous thread and have a go at patching it please.  
> Longer term we also also need to rig up a test to check for such things
> as part of make test (carefully). 
> In this case the syntax was broken in a dbcheck script so the tested
> and desired meaning (what passes on sn-devel, ie dash) is the opposite
> of the apparent meaning (what bash allows). 

can we just replace dash with bash on sn-devel?

Given the grieve and headache this is causing and the staggering amount of work
adding test for the shell scripts itself, paving over the problem by replacing
dash with bash looks tempting.


Ralph Boehme, Samba Team
Samba Developer, SerNet GmbH
GPG Key Fingerprint: FAE2 C608 8A24 2520 51C5  59E4 AA1E 9B71 2639 9E46

More information about the samba-technical mailing list