OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
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 echo "Applying patch to init scripts." | 7 echo "Applying patch to init scripts." |
8 | 8 |
9 touch "${ROOT_FS_DIR}/root/.factory_test" | 9 touch "${ROOT_FS_DIR}/root/.factory_test" |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 start on stopped udev-addon | 36 start on stopped udev-addon |
37 stop on starting halt or starting reboot | 37 stop on starting halt or starting reboot |
38 | 38 |
39 script | 39 script |
40 cd /usr/local/autotest | 40 cd /usr/local/autotest |
41 eval \$(./site_tests/suite_Factory/startx.sh) | 41 eval \$(./site_tests/suite_Factory/startx.sh) |
42 date >>/var/log/factory.log | 42 date >>/var/log/factory.log |
43 if [ ! -e factory_started ]; then | 43 if [ ! -e factory_started ]; then |
44 touch factory_started | 44 touch factory_started |
45 cp -f site_tests/suite_Factory/control . | 45 cp -f site_tests/suite_Factory/control . |
46 ./bin/autotest control >>/var/log/factory.log 2>&1 | 46 ./bin/autotest -t factory control >>/var/log/factory.log 2>&1 |
47 else | 47 else |
48 ./tools/autotest >>/var/log/factory.log 2>&1 | 48 ./bin/autotest -t factory -c control >>/var/log/factory.log 2>&1 |
49 fi | 49 fi |
50 end script | 50 end script |
51 EOF | 51 EOF |
52 | 52 |
53 cat >"${ROOT_FS_DIR}/etc/init/factorylog.conf" <<EOF | 53 cat >"${ROOT_FS_DIR}/etc/init/factorylog.conf" <<EOF |
54 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 54 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
55 # Use of this source code is governed by a BSD-style license that can be | 55 # Use of this source code is governed by a BSD-style license that can be |
56 # found in the LICENSE file. | 56 # found in the LICENSE file. |
57 | 57 |
58 description "Print Chrome OS factory log to tty3" | 58 description "Print Chrome OS factory log to tty3" |
(...skipping 27 matching lines...) Expand all Loading... |
86 # Use of this source code is governed by a BSD-style license that can be | 86 # Use of this source code is governed by a BSD-style license that can be |
87 # found in the LICENSE file. | 87 # found in the LICENSE file. |
88 | 88 |
89 -start on starting ui | 89 -start on starting ui |
90 +start on starting factory | 90 +start on starting factory |
91 | 91 |
92 respawn | 92 respawn |
93 | 93 |
94 EOF | 94 EOF |
95 fi | 95 fi |
OLD | NEW |