postgis tests - skip if createdb not found (TODO: check return code)
This commit is contained in:
parent
64f3815687
commit
18910f4c44
2 changed files with 2 additions and 0 deletions
|
@ -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():
|
||||||
|
|
|
@ -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():
|
||||||
|
|
Loading…
Reference in a new issue