From 18910f4c4414ff9f9e5b6dfabcbf49371f5163e8 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 24 Sep 2014 17:22:09 -0700 Subject: [PATCH] postgis tests - skip if createdb not found (TODO: check return code) --- tests/python_tests/pgraster_test.py | 1 + tests/python_tests/postgis_test.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/python_tests/pgraster_test.py b/tests/python_tests/pgraster_test.py index 915c4064b..b496ad44d 100644 --- a/tests/python_tests/pgraster_test.py +++ b/tests/python_tests/pgraster_test.py @@ -32,6 +32,7 @@ def call(cmd,silent=False): if not stderr: return stdin.strip() elif not silent and 'error' in stderr.lower() \ + or 'not found' in stderr.lower() \ or 'could not connect' in stderr.lower() \ or 'bad connection' in stderr.lower() \ or 'not recognized as an internal' in stderr.lower(): diff --git a/tests/python_tests/postgis_test.py b/tests/python_tests/postgis_test.py index 1ad22113d..13f46a09e 100644 --- a/tests/python_tests/postgis_test.py +++ b/tests/python_tests/postgis_test.py @@ -24,6 +24,7 @@ def call(cmd,silent=False): if not stderr: return stdin.strip() elif not silent and 'error' in stderr.lower() \ + or 'not found' in stderr.lower() \ or 'could not connect' in stderr.lower() \ or 'bad connection' in stderr.lower() \ or 'not recognized as an internal' in stderr.lower():