From 8f35ea4d19a94aacd1b417eadc6ce5299e4c1b9c Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Tue, 11 Apr 2017 13:39:43 +0200
Subject: [PATCH] component/firefox: discard stderr output in firefox-slapos.

background: firefox 51 outputs non-ASCII character when it is terminated and current erp5.util cannot recognize well if the test finishes.
this commit is a workaround for this issue, so that we can use firefox 51 without touching ERP5TypeFunctionalTestCase, that is important to test old ERP5 revision.

also quote arguments.
---
 component/firefox/buildout.cfg | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/component/firefox/buildout.cfg b/component/firefox/buildout.cfg
index 897778590..5f6bd3d86 100644
--- a/component/firefox/buildout.cfg
+++ b/component/firefox/buildout.cfg
@@ -94,7 +94,8 @@ script =
   export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${xz-utils:location}/lib"
   export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${zlib:location}/lib"
   export PATH=${fontconfig:location}/bin:$PATH
-  exec %(location)s/firefox $*""")
+  exec %(location)s/firefox "$@" 2> /dev/null
+  """)
   wrapper.close()
   os.chmod(wrapper_location, 0755)
 
-- 
2.30.9