Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/bsddb3/files: bsddb3-4.8.3-BSDDB_TEST_PATH.patch
Date: Mon, 01 Mar 2010 21:22:21
Message-Id: E1NmD4D-0002V7-N3@stork.gentoo.org
1 arfrever 10/03/01 21:22:17
2
3 Added: bsddb3-4.8.3-BSDDB_TEST_PATH.patch
4 Log:
5 Version bump. Run tests in ${T}/tests-${PYTHON_ABI} directories instead of /tmp/z-Berkeley_DB.
6 (Portage version: 15511-svn/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 dev-python/bsddb3/files/bsddb3-4.8.3-BSDDB_TEST_PATH.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/bsddb3/files/bsddb3-4.8.3-BSDDB_TEST_PATH.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/bsddb3/files/bsddb3-4.8.3-BSDDB_TEST_PATH.patch?rev=1.1&content-type=text/plain
13
14 Index: bsddb3-4.8.3-BSDDB_TEST_PATH.patch
15 ===================================================================
16 --- Lib/bsddb/test/test_all.py
17 +++ Lib/bsddb/test/test_all.py
18 @@ -528,7 +528,9 @@
19
20 # This path can be overriden via "set_test_path_prefix()".
21 import os, os.path
22 -get_new_path.prefix=os.path.join(os.sep,"tmp","z-Berkeley_DB")
23 +get_new_path.prefix=os.environ.get("BSDDB_TEST_PATH")
24 +if get_new_path.prefix is None:
25 + get_new_path.prefix=os.path.join(os.sep,"tmp","z-Berkeley_DB")
26 get_new_path.num=0
27
28 def get_test_path_prefix() :
29 --- Lib3/bsddb/test/test_all.py
30 +++ Lib3/bsddb/test/test_all.py
31 @@ -528,7 +528,9 @@
32
33 # This path can be overriden via "set_test_path_prefix()".
34 import os, os.path
35 -get_new_path.prefix=os.path.join(os.sep,"tmp","z-Berkeley_DB")
36 +get_new_path.prefix=os.environ.get("BSDDB_TEST_PATH")
37 +if get_new_path.prefix is None:
38 + get_new_path.prefix=os.path.join(os.sep,"tmp","z-Berkeley_DB")
39 get_new_path.num=0
40
41 def get_test_path_prefix() :