diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
commit | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch) | |
tree | 4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /dev-python/pytest-services/files | |
parent | b284a3168fa91a038925d2ecf5e4791011ea5e7d (diff) |
gentoo resync : 15.12.2019
Diffstat (limited to 'dev-python/pytest-services/files')
-rw-r--r-- | dev-python/pytest-services/files/pytest-services-2.0.1-lockdir.patch | 23 | ||||
-rw-r--r-- | dev-python/pytest-services/files/pytest-services-2.0.1-no-mysql.patch | 25 |
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/pytest-services/files/pytest-services-2.0.1-lockdir.patch b/dev-python/pytest-services/files/pytest-services-2.0.1-lockdir.patch new file mode 100644 index 000000000000..0ecf7be8c3c0 --- /dev/null +++ b/dev-python/pytest-services/files/pytest-services-2.0.1-lockdir.patch @@ -0,0 +1,23 @@ +diff -ur pytest-services-2.0.1.orig/pytest_services/folders.py pytest-services-2.0.1/pytest_services/folders.py +--- pytest-services-2.0.1.orig/pytest_services/folders.py 2019-11-12 13:04:01.000000000 -0800 ++++ pytest-services-2.0.1/pytest_services/folders.py 2019-11-20 23:26:55.760949590 -0800 +@@ -9,7 +9,7 @@ + @pytest.fixture(scope='session') + def root_dir(): + """The parent directory of the test base artifact directory.""" +- return '/tmp' ++ return os.getenv("TMPDIR") or '/tmp' + + + @pytest.yield_fixture(scope='session') +@@ -47,7 +47,8 @@ + def memory_root_dir(root_dir): + """The parent directory of the test artifact directory in memory.""" + # check for a free space for at least 8 parallel processes +- if os.path.exists('/dev/shm') and psutil.disk_usage('/dev/shm').free > 1024 * 1024 * 64 * 10: ++ if os.path.exists('/dev/shm') and psutil.disk_usage('/dev/shm').free > 1024 * 1024 * 64 * 10 \ ++ and os.access('/dev/shm', os.W_OK): + return '/dev/shm' + return root_dir + +Only in pytest-services-2.0.1/pytest_services: .folders.py.un~ diff --git a/dev-python/pytest-services/files/pytest-services-2.0.1-no-mysql.patch b/dev-python/pytest-services/files/pytest-services-2.0.1-no-mysql.patch new file mode 100644 index 000000000000..2a86f5110d5e --- /dev/null +++ b/dev-python/pytest-services/files/pytest-services-2.0.1-no-mysql.patch @@ -0,0 +1,25 @@ +diff -ur pytest-services-2.0.1.orig/tests/test_plugin.py pytest-services-2.0.1/tests/test_plugin.py +--- pytest-services-2.0.1.orig/tests/test_plugin.py 2019-11-12 13:04:01.000000000 -0800 ++++ pytest-services-2.0.1/tests/test_plugin.py 2019-11-20 19:28:17.789932680 -0800 +@@ -3,7 +3,6 @@ + import socket + + import pylibmc +-import MySQLdb + + + def test_memcached(request, memcached, memcached_socket): +@@ -17,12 +16,6 @@ + assert mc.get('some') is None + + +-def test_mysql(mysql, mysql_connection, mysql_socket): +- """Test mysql service.""" +- conn = MySQLdb.connect(user='root', unix_socket=mysql_socket) +- assert conn +- +- + def test_xvfb(xvfb, xvfb_display): + """Test xvfb service.""" + socket.create_connection(('127.0.0.1', 6000 + xvfb_display)) +Only in pytest-services-2.0.1/tests: .test_plugin.py.un~ |