Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(784)

Side by Side Diff: client/site_tests/factory_Camera/factory_Camera.py

Issue 3438007: Replace newline characters in factory tests (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: Address review comments Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 # 2 #
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 7
8 # DESCRIPTION : 8 # DESCRIPTION :
9 # 9 #
10 # This test looks in "/dev/video0" for a v4l2 video capture device, 10 # This test looks in "/dev/video0" for a v4l2 video capture device,
(...skipping 12 matching lines...) Expand all
23 import glib 23 import glib
24 import pango 24 import pango
25 import numpy 25 import numpy
26 26
27 from gtk import gdk 27 from gtk import gdk
28 from random import randrange 28 from random import randrange
29 29
30 from autotest_lib.client.bin import factory 30 from autotest_lib.client.bin import factory
31 from autotest_lib.client.bin import factory_ui_lib as ful 31 from autotest_lib.client.bin import factory_ui_lib as ful
32 from autotest_lib.client.bin import test 32 from autotest_lib.client.bin import test
33 from autotest_lib.client.common_lib import error 33 from autotest_lib.client.bin import factory_error as error
34 34
35 import v4l2 35 import v4l2
36 36
37 37
38 DEVICE_NAME = '/dev/video0' 38 DEVICE_NAME = '/dev/video0'
39 PREFERRED_WIDTH = 320 39 PREFERRED_WIDTH = 320
40 PREFERRED_HEIGHT = 240 40 PREFERRED_HEIGHT = 240
41 PREFERRED_BUFFER_COUNT = 4 41 PREFERRED_BUFFER_COUNT = 4
42 42
43 KEY_GOOD = gdk.keyval_from_name('Return') 43 KEY_GOOD = gdk.keyval_from_name('Return')
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 dev.capture_mmap_finish() 183 dev.capture_mmap_finish()
184 184
185 if self.fail: 185 if self.fail:
186 raise error.TestFail('Camera test failed by user indication\n' \ 186 raise error.TestFail('Camera test failed by user indication\n' \
187 '品管人員懷疑攝影鏡頭故障,請檢修') 187 '品管人員懷疑攝影鏡頭故障,請檢修')
188 if self.ledfail: 188 if self.ledfail:
189 raise error.TestFail('Camera LED test failed\n' \ 189 raise error.TestFail('Camera LED test failed\n' \
190 '攝影鏡頭 LED 測試不通過,請檢修') 190 '攝影鏡頭 LED 測試不通過,請檢修')
191 191
192 factory.log('%s run_once finished' % self.__class__) 192 factory.log('%s run_once finished' % self.__class__)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698