diff --git a/beat/backend/python/test/__init__.py b/beat/backend/python/test/__init__.py index 9b5a7da2dc82c7c3e1875918d424eec68611b4c4..3de6ae2745528dc3d090b4b00e33bfc5ad589d34 100644 --- a/beat/backend/python/test/__init__.py +++ b/beat/backend/python/test/__init__.py @@ -36,3 +36,7 @@ import pkg_resources prefix = pkg_resources.resource_filename(__name__, "prefix") + +# This variable should be used to generate the appropriate folder when dealing with +# docker execution. +BBP_DATABASE_ROOT_FOLDER = "/tmp/beat_backend_python_test" # nosec diff --git a/beat/backend/python/test/prefix/databases/crash/1.json b/beat/backend/python/test/prefix/databases/crash/1.json index 306bd903bdc7e0b4a64f476c5366ed51489a2dcd..f03ea342e7ff89c76d5bc7d2d80a11a7eedbd75d 100644 --- a/beat/backend/python/test/prefix/databases/crash/1.json +++ b/beat/backend/python/test/prefix/databases/crash/1.json @@ -1,5 +1,5 @@ { - "root_folder": "/tmp/foo/bar", + "root_folder": "/tmp/beat_backend_python_test", "protocols": [ { "name": "protocol", diff --git a/beat/backend/python/test/prefix/databases/duplicate_key_error/1.json b/beat/backend/python/test/prefix/databases/duplicate_key_error/1.json index f684a0fbc2a9bf7912a6b0ea6af2404371ece089..a765c9d44acfd6c8060050731a2fb521ba805a36 100644 --- a/beat/backend/python/test/prefix/databases/duplicate_key_error/1.json +++ b/beat/backend/python/test/prefix/databases/duplicate_key_error/1.json @@ -1,5 +1,5 @@ { - "root_folder": "/tmp/foo/bar", + "root_folder": "/tmp/beat_backend_python_test", "protocols": [ { "name": "test_duplicate_key", diff --git a/beat/backend/python/test/prefix/databases/integers_db/1.json b/beat/backend/python/test/prefix/databases/integers_db/1.json index 402699b6bd321653ef39a0cbc859e77c2c6c6e55..cca34abcccb560f74326fbf26e7b19f843f059b1 100644 --- a/beat/backend/python/test/prefix/databases/integers_db/1.json +++ b/beat/backend/python/test/prefix/databases/integers_db/1.json @@ -1,5 +1,5 @@ { - "root_folder": "/tmp/path/not/set", + "root_folder": "/tmp/beat_backend_python_test", "protocols": [ { "name": "double", diff --git a/beat/backend/python/test/prefix/databases/integers_db/2.json b/beat/backend/python/test/prefix/databases/integers_db/2.json index c48d561613c2a84d558fe739c413ff8f46647183..60376f43f45b5840aaf1a04172a742e5e140bab7 100644 --- a/beat/backend/python/test/prefix/databases/integers_db/2.json +++ b/beat/backend/python/test/prefix/databases/integers_db/2.json @@ -1,7 +1,7 @@ { "schema_version": 2, - "root_folder": "/tmp/path/not/set", + "root_folder": "/tmp/beat_backend_python_test", "protocols": [ { "name": "double", diff --git a/beat/backend/python/test/prefix/databases/integers_db_env/1.json b/beat/backend/python/test/prefix/databases/integers_db_env/1.json index 71a4ad1b84ce7a9bbb6186a07d7cb6e3755959f7..e5575586eab11746d51e87f4074355b02526ca4a 100644 --- a/beat/backend/python/test/prefix/databases/integers_db_env/1.json +++ b/beat/backend/python/test/prefix/databases/integers_db_env/1.json @@ -1,5 +1,5 @@ { - "root_folder": "/tmp/path/not/set", + "root_folder": "/tmp/beat_backend_python_test", "environment": { "name": "Example databases", "version": "1.4.0" diff --git a/beat/backend/python/test/prefix/databases/integers_db_env/2.json b/beat/backend/python/test/prefix/databases/integers_db_env/2.json index 636da24bf0f79fcdb0c7a4fe333356152fa6809f..795bddafa18518386dfbf219888b3b76f877b7e7 100644 --- a/beat/backend/python/test/prefix/databases/integers_db_env/2.json +++ b/beat/backend/python/test/prefix/databases/integers_db_env/2.json @@ -4,7 +4,7 @@ "name": "Example databases", "version": "1.4.0" }, - "root_folder": "/tmp/path/not/set", + "root_folder": "/tmp/beat_backend_python_test", "protocols": [ { "name": "double", diff --git a/beat/backend/python/test/prefix/databases/python_keyword/1.json b/beat/backend/python/test/prefix/databases/python_keyword/1.json index f724a1026393e1fdecc9c16a7ca4a85645fd04fa..792572dfa9ce1f9f8024b2a9e5232ad5d38b1b18 100644 --- a/beat/backend/python/test/prefix/databases/python_keyword/1.json +++ b/beat/backend/python/test/prefix/databases/python_keyword/1.json @@ -1,5 +1,5 @@ { - "root_folder": "/tmp/path/not/set", + "root_folder": "/tmp/beat_backend_python_test", "protocols": [ { "name": "keyword", diff --git a/beat/backend/python/test/prefix/databases/syntax_error/1.json b/beat/backend/python/test/prefix/databases/syntax_error/1.json index 4d8d097894df578bb3c48e848835e64aee2939e3..78fb6bad54809a49a3e41818c57d08561f3e6e75 100644 --- a/beat/backend/python/test/prefix/databases/syntax_error/1.json +++ b/beat/backend/python/test/prefix/databases/syntax_error/1.json @@ -1,5 +1,5 @@ { - "root_folder": "/tmp/foo/bar", + "root_folder": "/tmp/beat_backend_python_test", "protocols": [ { "name": "protocol", diff --git a/beat/backend/python/test/prefix/databases/with_parameters/1.json b/beat/backend/python/test/prefix/databases/with_parameters/1.json index c40f678ee85a87b44a6ec0bb4ab61de3065814de..556b4efcf316485b44e7e0c8f2dd116dd89335eb 100644 --- a/beat/backend/python/test/prefix/databases/with_parameters/1.json +++ b/beat/backend/python/test/prefix/databases/with_parameters/1.json @@ -1,5 +1,5 @@ { - "root_folder": "/tmp/foo/bar", + "root_folder": "/tmp/beat_backend_python_test", "protocols": [ { "name": "test_with_parameters", diff --git a/beat/backend/python/test/prefix/databases/with_parameters/2.json b/beat/backend/python/test/prefix/databases/with_parameters/2.json index 9ca285c368f4ff445ebc31ab54c98fb24da161b1..f31b38fd9e1df681dee0638d3d269e8f71ef1012 100644 --- a/beat/backend/python/test/prefix/databases/with_parameters/2.json +++ b/beat/backend/python/test/prefix/databases/with_parameters/2.json @@ -1,5 +1,5 @@ { - "root_folder": "/tmp/foo/bar", + "root_folder": "/tmp/beat_backend_python_test", "protocols": [ { "name": "test_with_parameters",