postgis tests - skip if createdb not found (TODO: check return code)

This commit is contained in:
Dane Springmeyer 2014-09-24 17:22:09 -07:00
parent 64f3815687
commit 18910f4c44
2 changed files with 2 additions and 0 deletions

View file

@ -32,6 +32,7 @@ def call(cmd,silent=False):
if not stderr: if not stderr:
return stdin.strip() return stdin.strip()
elif not silent and 'error' in stderr.lower() \ elif not silent and 'error' in stderr.lower() \
or 'not found' in stderr.lower() \
or 'could not connect' in stderr.lower() \ or 'could not connect' in stderr.lower() \
or 'bad connection' in stderr.lower() \ or 'bad connection' in stderr.lower() \
or 'not recognized as an internal' in stderr.lower(): or 'not recognized as an internal' in stderr.lower():

View file

@ -24,6 +24,7 @@ def call(cmd,silent=False):
if not stderr: if not stderr:
return stdin.strip() return stdin.strip()
elif not silent and 'error' in stderr.lower() \ elif not silent and 'error' in stderr.lower() \
or 'not found' in stderr.lower() \
or 'could not connect' in stderr.lower() \ or 'could not connect' in stderr.lower() \
or 'bad connection' in stderr.lower() \ or 'bad connection' in stderr.lower() \
or 'not recognized as an internal' in stderr.lower(): or 'not recognized as an internal' in stderr.lower():