[python-uk] Suggestions / best practices for deployment

John Lee jjl at pobox.com
Mon May 20 22:16:59 CEST 2013


On Mon, 20 May 2013, MikedePlume wrote:

> I must say, I'd love to see something about testing bash scripts, and,

Something like this:

child = subprocess.Popen(["find", deploy_root, "-name", "*.sh"])
out, err = child.communicate()
bad = out.splitlines()
self.assertEqual(len(bad), 0)


;-)


John


More information about the python-uk mailing list