summaryrefslogtreecommitdiff
path: root/rel/files
diff options
context:
space:
mode:
authorAlexander Shorin <kxepal@apache.org>2015-10-08 14:43:36 +0300
committerAlexander Shorin <kxepal@apache.org>2015-10-08 14:44:07 +0300
commitaf105532c1186b02c837cf1109e32a465ef4b982 (patch)
tree99a558b5f2d30a76cc9f517892091e429ef85bd4 /rel/files
parent0f38f460beae920add74c61889f3f4c54bcd2498 (diff)
downloadcouchdb-af105532c1186b02c837cf1109e32a465ef4b982.tar.gz
Use eunit.config instead of vm.args to silence error_logger
While both handles problem well, options in vm.args eventually becomes overridden by some internal stuff and error_logger gets his tty handler back. Config-way is more reliable here and also prevents us to hit exotic issues like race with test node start or warnings about bad node name used in tests. So far, to run specific test without distractive noise, use the following template: BUILDDIR=`pwd` ERL_AFLAGS="-config `pwd`/rel/files/eunit.config` ./bin/rebar -r eunit ...
Diffstat (limited to 'rel/files')
-rw-r--r--rel/files/eunit.config16
1 files changed, 16 insertions, 0 deletions
diff --git a/rel/files/eunit.config b/rel/files/eunit.config
new file mode 100644
index 000000000..3c7457d3a
--- /dev/null
+++ b/rel/files/eunit.config
@@ -0,0 +1,16 @@
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
+[
+ {kernel, [{error_logger, silent}]},
+ {sasl, [{sasl_error_logger, false}]}
+].