couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r1095577 - /couchdb/branches/1.0.x/test/etap/test_util.erl.in
Date Thu, 21 Apr 2011 00:31:11 GMT
Author: davisp
Date: Thu Apr 21 00:31:11 2011
New Revision: 1095577

URL: http://svn.apache.org/viewvc?rev=1095577&view=rev
Log:
Fix config file paths in etap tests.

Partial backport of 1066932 from trunk.


Modified:
    couchdb/branches/1.0.x/test/etap/test_util.erl.in

Modified: couchdb/branches/1.0.x/test/etap/test_util.erl.in
URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/test/etap/test_util.erl.in?rev=1095577&r1=1095576&r2=1095577&view=diff
==============================================================================
--- couchdb/branches/1.0.x/test/etap/test_util.erl.in (original)
+++ couchdb/branches/1.0.x/test/etap/test_util.erl.in Thu Apr 21 00:31:11 2011
@@ -24,7 +24,7 @@ builddir() ->
 init_code_path() ->
     Paths = ["etap", "couchdb", "erlang-oauth", "ibrowse", "mochiweb"],
     lists:foreach(fun(Name) ->
-        code:add_pathz(filename:join([builddir(), "src", Name]))
+        code:add_patha(filename:join([builddir(), "src", Name]))
     end, Paths).
 
 source_file(Name) ->
@@ -34,8 +34,9 @@ build_file(Name) ->
     filename:join([builddir(), Name]).
 
 config_files() ->
-    lists:map(fun build_file/1, [
-        "etc/couchdb/default_dev.ini",
-        "etc/couchdb/local_dev.ini",
-        "test/etap/random_port.ini"
-    ]).
+    [
+        build_file("etc/couchdb/default_dev.ini"),
+        build_file("etc/couchdb/local_dev.ini"),
+        source_file("test/etap/random_port.ini")
+    ].
+



Mime
View raw message