kopia lustrzana https://github.com/simonw/datasette
e03aed0002
This is useful, especially in testing, since your test hosts might not reliabliy start the server within two seconds, so we do a definite check before progressing. By the same token, after `kill $server_pid` wait for the pid to be gone from the process list. Since now the script can end prematurely, I also added a cleanup function to make sure the temporary certs are removed in any case. n.b. this could also be done with the use of `trap 'fn' ERR` but that felt like a bit too much magic for this short a script. |
||
---|---|---|
.. | ||
plugins | ||
test_templates | ||
__init__.py | ||
build_small_spatialite_db.py | ||
conftest.py | ||
ext.c | ||
fixtures.py | ||
spatialite.db | ||
test_api.py | ||
test_api_write.py | ||
test_auth.py | ||
test_black.py | ||
test_canned_queries.py | ||
test_cli.py | ||
test_cli_serve_get.py | ||
test_cli_serve_server.py | ||
test_config_dir.py | ||
test_crossdb.py | ||
test_csv.py | ||
test_custom_pages.py | ||
test_datasette_https_server.sh | ||
test_docs.py | ||
test_facets.py | ||
test_filters.py | ||
test_html.py | ||
test_internal_db.py | ||
test_internals_database.py | ||
test_internals_datasette.py | ||
test_internals_datasette_client.py | ||
test_internals_request.py | ||
test_internals_response.py | ||
test_internals_urls.py | ||
test_load_extensions.py | ||
test_messages.py | ||
test_package.py | ||
test_permissions.py | ||
test_plugins.py | ||
test_publish_cloudrun.py | ||
test_publish_heroku.py | ||
test_routes.py | ||
test_spatialite.py | ||
test_table_api.py | ||
test_table_html.py | ||
test_tracer.py | ||
test_utils.py | ||
utils.py |