Skip to content

Commit

Permalink
[IMP] tests log phantom to info the default loglevel of runbot
Browse files Browse the repository at this point in the history
bzr revid: al@openerp.com-20140316195252-i6wr3scp0zmx92zu
  • Loading branch information
antonylesuisse committed Mar 16, 2014
1 parent ddf66c0 commit 97a097d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openerp/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def phantom_poll(self, phantom, timeout):
line = str(line)

# relay everything from console.log, even 'ok' or 'error...' lines
_logger.debug("phantomjs: %s", line)
_logger.info("phantomjs: %s", line)

if line == "ok":
break
Expand All @@ -242,7 +242,7 @@ def phantom_poll(self, phantom, timeout):
self.fail(line_ or "phantomjs test failed")

def phantom_run(self, cmd, timeout):
_logger.debug('phantom_run executing %s', ' '.join(cmd))
_logger.info('phantom_run executing %s', ' '.join(cmd))
try:
phantom = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
except OSError:
Expand All @@ -253,7 +253,7 @@ def phantom_run(self, cmd, timeout):
# kill phantomjs if phantom.exit() wasn't called in the test
if phantom.poll() is None:
phantom.terminate()
_logger.debug("phantom_run execution finished")
_logger.info("phantom_run execution finished")

def phantom_jsfile(self, jsfile, timeout=30, **kw):
options = {
Expand Down

0 comments on commit 97a097d

Please sign in to comment.