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

Side by Side Diff: factory.conf

Issue 6857005: Revert "Disable screen blanking and powersave on VT2 for factory" (Closed) Base URL: ssh://gitrw.chromium.org:9222/factory_test_init.git@master
Patch Set: Created 9 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium OS 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 4
5 description "Chrome OS factory startup stub" 5 description "Chrome OS factory startup stub"
6 author "chromium-os-dev@chromium.org" 6 author "chromium-os-dev@chromium.org"
7 7
8 start on stopped udev-addon 8 start on stopped udev-addon
9 stop on starting halt or starting reboot 9 stop on starting halt or starting reboot
10 10
11 script 11 script
12 # disable screen blanking & VESA powerdown for VT2
13 echo -e "\033[9;0]" > /dev/console
14 echo -e "\033[14;0]" > /dev/console
15
16 modprobe i2c-dev 12 modprobe i2c-dev
17 cd /usr/local/autotest 13 cd /usr/local/autotest
18 eval $(./site_tests/suite_Factory/startx.sh) 14 eval $(./site_tests/suite_Factory/startx.sh)
19 date >>/var/log/factory.log 15 date >>/var/log/factory.log
20 if [ ! -e factory_started ]; then 16 if [ ! -e factory_started ]; then
21 touch factory_started 17 touch factory_started
22 cp -f site_tests/suite_Factory/control . 18 cp -f site_tests/suite_Factory/control .
23 OPT="" 19 OPT=""
24 else 20 else
25 OPT="-c" 21 OPT="-c"
26 fi 22 fi
27 FACTORY_LOG_FILE=/var/log/factory.log 23 FACTORY_LOG_FILE=/var/log/factory.log
28 CONSOLE_LOG_FILE=/var/log/factory_console.log 24 CONSOLE_LOG_FILE=/var/log/factory_console.log
29 # Factory log will be uploaded so we must always preserve previous results. 25 # Factory log will be uploaded so we must always preserve previous results.
30 # Console log is just for UI to display, no need to be saved across sessions; 26 # Console log is just for UI to display, no need to be saved across sessions;
31 # however in order to support writing by multiple processes, the file must be 27 # however in order to support writing by multiple processes, the file must be
32 # opened in "append" mode. So we must first delete it then use >> to append. 28 # opened in "append" mode. So we must first delete it then use >> to append.
33 rm -f "$CONSOLE_LOG_FILE" 29 rm -f "$CONSOLE_LOG_FILE"
34 ./bin/autotest -t factory $OPT control 2>&1 | 30 ./bin/autotest -t factory $OPT control 2>&1 |
35 tee -a "$FACTORY_LOG_FILE" | 31 tee -a "$FACTORY_LOG_FILE" |
36 grep --line-buffer "FACTORY" >>"$CONSOLE_LOG_FILE" 32 grep --line-buffer "FACTORY" >>"$CONSOLE_LOG_FILE"
37 end script 33 end script
38 34
39 pre-stop script 35 pre-stop script
40 pkill python 36 pkill python
41 pkill X 37 pkill X
42 end script 38 end script
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698