<div dir="ltr">We need this. Please find a tool which suites best, and we will let Dmitry's team to enable it. I assume there is not such a thing in OpenStack Infra (otherwise we could just reuse it).<div><br><div>Also, I would add a check, that any new bash file should not contain, let's say, more than 50 lines. If it is larger than that, it has to be very well explained, why it can't be written in Python and covered by unit tests.</div><div>It is quite sad to see bash hacks in different places of something which has to be maintainable by many people over years.</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 9, 2015 at 11:36 AM Oleg Gelbukh <<a href="mailto:ogelbukh@mirantis.com">ogelbukh@mirantis.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">And I realized all of a sudden that even more interesting than unittest framework itself would be some analog of Python mock for shell scripts. Though I doubt that anyone ever really gone that far.</div><div dir="ltr"><div><br></div><div>--</div><div>Best regards,</div><div>Oleg Gelbukh</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 9, 2015 at 5:12 PM, Jeremy Stanley <span dir="ltr"><<a href="mailto:fungi@yuggoth.org" target="_blank">fungi@yuggoth.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 2015-07-09 11:24:14 +0300 (+0300), Matthew Mosesohn wrote:<br>
> What about bashate? It is already in use in several OpenStack projects?<br>
</span>[...]<br>
<br>
It's a style checker (its name is an allusion to the "pep8" tool for<br>
checking Python coding style conventions). And shellcheck (mentioned<br>
later in this thread) is a static code analysis tool for shell<br>
scripts (analogous to pylint/pyflakes in the Python world). Both<br>
potentially useful tools for helping you maintain code quality on<br>
shell script based projects, but neither of these is a unit testing<br>
framework.<br>
<span><font color="#888888">--<br>
Jeremy Stanley<br>
</font></span><div><div><br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><div dir="ltr">-- <br></div><div dir="ltr">Mike Scherbakov<br>#mihgen</div>