[Tile-serving] [osm2pgsql] Test cases don't report stderr when execution of osm2pgsql fails (#143)

Jochen Topf notifications at github.com
Sat May 3 13:43:13 UTC 2014


This makes it kind of hard to debug. Instead of `subprocess.call` something like this should be used:

    proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    (outp, outerr) = proc.communicate()
    assert (proc.returncode == 0), "Script '%s' failed:\n%s\n%s\n" % (script, outp, outerr)

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/143
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20140503/83f2fd7c/attachment.html>


More information about the Tile-serving mailing list