On 24/04/2019 17.23, Daniel P. Berrangé wrote: > On Wed, Apr 24, 2019 at 09:14:29AM -0500, Eric Blake wrote: >> On 4/24/19 5:37 AM, Thomas Huth wrote: >>> bash is installed in a different directory on non-Linux systems like >>> FreeBSD. Do not hard-code /bin/bash here so that the tests can run >>> there, too. >> >> These tests were obviously copy-and-pasted from a fork point prior to >> commit 11a82d14. > > Is this a candidate for a checkpatch addition to reject any use > of /bin/bash in scripts ?
Not sure whether we should really reject it with an error (there might be scripts that are only used on Linux anyway), but checkpatch.pl should at least print a warning, I think. Thomas