| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 """A wrapper around ssh for common operations on a CrOS-based device""" | 4 """A wrapper around ssh for common operations on a CrOS-based device""" |
| 5 import logging | 5 import logging |
| 6 import os | 6 import os |
| 7 import re | 7 import re |
| 8 import subprocess | 8 import subprocess |
| 9 import sys | 9 import sys |
| 10 import tempfile | 10 import tempfile |
| 11 | 11 |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 (SCREENSHOT_DIR, screenshot_prefix, i, SCREENSHOT_EXT)) | 336 (SCREENSHOT_DIR, screenshot_prefix, i, SCREENSHOT_EXT)) |
| 337 if not self.FileExistsOnDevice(screenshot_file): | 337 if not self.FileExistsOnDevice(screenshot_file): |
| 338 self.RunCmdOnDevice([ | 338 self.RunCmdOnDevice([ |
| 339 'DISPLAY=:0.0 XAUTHORITY=/home/chronos/.Xauthority ' | 339 'DISPLAY=:0.0 XAUTHORITY=/home/chronos/.Xauthority ' |
| 340 '/usr/local/bin/import', | 340 '/usr/local/bin/import', |
| 341 '-window root', | 341 '-window root', |
| 342 '-depth 8', | 342 '-depth 8', |
| 343 screenshot_file]) | 343 screenshot_file]) |
| 344 return | 344 return |
| 345 logging.warning('screenshot directory full.') | 345 logging.warning('screenshot directory full.') |
| OLD | NEW |