couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woh...@apache.org
Subject [couchdb] 01/01: Fix EUnit test suite on Windows
Date Mon, 06 Nov 2017 04:12:16 GMT
This is an automated email from the ASF dual-hosted git repository.

wohali pushed a commit to branch fix-windows-testsuite
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 6ccfcda41702669cfe5f610ef8e0b86a57102b2a
Author: Joan Touzet <joant@atypical.net>
AuthorDate: Sun Nov 5 22:10:57 2017 -0500

    Fix EUnit test suite on Windows
    
    1. You cannot create file names with " in them on Windows...
    2. When you update Makefile, you have to update Makefile.win sometimes too.
---
 Makefile.win                      | 5 ++++-
 src/couch/include/couch_eunit.hrl | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Makefile.win b/Makefile.win
index 4b1b546..874ddf4 100644
--- a/Makefile.win
+++ b/Makefile.win
@@ -102,7 +102,10 @@ else
 	@copy test\javascript\tests\lorem*.txt src\fauxton\dist\release\test
 endif
 	-@rmdir /s/q dev\lib
-	@python dev\run -n 1 -q --with-admin-party-please -c startup_jitter=0 python test\javascript\run
$(suites)
+	@python dev\run -n 1 -q --with-admin-party-please \
+		--enable-erlang-views \
+		-c startup_jitter=0 \
+		python test\javascript\run $(suites)
 
 
 .PHONY: check-qs
diff --git a/src/couch/include/couch_eunit.hrl b/src/couch/include/couch_eunit.hrl
index 8a1527b..8eb763a 100644
--- a/src/couch/include/couch_eunit.hrl
+++ b/src/couch/include/couch_eunit.hrl
@@ -42,7 +42,7 @@
     fun() ->
         A = integer_to_list(couch_util:unique_monotonic_integer()),
         N = node(),
-        FileName = lists:flatten(io_lib:format("~p-~p", [N, A])),
+        FileName = lists:flatten(io_lib:format("~p-~s", [N, A])),
         filename:join([?TEMPDIR, FileName])
     end).
 -define(tempdb,

-- 
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <commits@couchdb.apache.org>.

Mime
View raw message