[Tile-serving] [openstreetmap/osm2pgsql] Add tests/__pycache__ to .gitignore (#1005)

Jochen Topf notifications at github.com
Wed Nov 27 13:36:30 UTC 2019


Maybe that's better, yes. The extra overhead of always compiling the script is probably nothing compared to the time the test runs anyway.

I just tested this patch and it works well:
```
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index b8ce786..92f8243 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -92,7 +92,7 @@ if (PYTHONINTERP_FOUND)
     configure_file(${CMAKE_CURRENT_SOURCE_DIR}/regression-test.py.in
                    ${CMAKE_CURRENT_BINARY_DIR}/regression-test.py)
     add_test(NAME regression-test-pbf
-             COMMAND ${CMAKE_CURRENT_BINARY_DIR}/regression-test.py)
+             COMMAND ${PYTHON_EXECUTABLE} -B ${CMAKE_CURRENT_BINARY_DIR}/regression-test.py)
     set_tests_properties(regression-test-pbf PROPERTIES TIMEOUT ${TESTING_TIMEOUT})
     set_tests_properties(regression-test-pbf
                          PROPERTIES FIXTURES_REQUIRED Tablespace)
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1005#issuecomment-559090052
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20191127/bad43bfa/attachment.html>


More information about the Tile-serving mailing list