[IMP] filter out phantomjs warning on OSX

bzr revid: xmo@openerp.com-20140221143512-0qmmxq0gibmdgk6d
This commit is contained in:
Xavier Morel 2014-02-21 15:35:12 +01:00
parent d27526d088
commit 42763039f0
1 changed files with 7 additions and 2 deletions

View File

@ -59,7 +59,7 @@ class QUnitSuite(unittest.TestSuite):
'timeout': self.timeout,
'inject': os.path.join(ROOT, 'qunit-phantomjs-bridge.js')
})
], stdout=subprocess.PIPE)
], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
try:
while True:
@ -75,7 +75,12 @@ class QUnitSuite(unittest.TestSuite):
phantom.terminate()
def process(self, line, result):
args = json.loads(line)
try:
args = json.loads(line)
except ValueError: # phantomjs stderr
if 'CoreText' not in line:
print line
return False
event_name = args[0]
if event_name == 'qunit.done':