diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2008-08-09 13:16:43 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2008-08-09 13:16:43 (GMT) |
commit | 548fa59df1f93d4e9b2aabcc58ef4819ae7ecdb9 (patch) | |
tree | d64298261db1d56f3b1554f3b976067de6825075 /scripts | |
parent | 4d39bae80f856c59a9aa973089b445d6df63f2fd (diff) |
Redirect xvfb output to devnull
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/check.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/check.py b/scripts/check.py index d96e149..b7d3dab 100644 --- a/scripts/check.py +++ b/scripts/check.py @@ -27,7 +27,9 @@ class cmd_check(Command): port = ':%d' % random.randrange(1000, 50000) try: - subprocess.Popen(['Xvfb', '-ac', port]) + subprocess.Popen(['Xvfb', '-ac', port], + stdout=open(os.devnull, "w"), + stderr=subprocess.STDOUT) os.environ['DISPLAY'] = port except OSError: print 'Cannot execute xfvb, will use the default display.' |