From ce8384d7c603d43846c5f92a2ae188a9ff51e393 Mon Sep 17 00:00:00 2001 From: "J. Richard Barnette" Date: Mon, 21 Mar 2011 10:00:09 -0700 Subject: [PATCH] Build factory test images using the new factorytest-init package. This also deletes the code from mod_for_factory_scripts/200patchInitScript that created the files that now come from the new package. BUG=chromium-os:13258 TEST=Build and boot a factory test image Review URL: http://codereview.chromium.org/6665048 Change-Id: I115d1a2e3afe2fdefc0e07247b21b67e0cf9cc62 --- mod_for_factory_scripts/200patchInitScript | 50 +--------------------- mod_image_for_test.sh | 4 ++ 2 files changed, 5 insertions(+), 49 deletions(-) diff --git a/mod_for_factory_scripts/200patchInitScript b/mod_for_factory_scripts/200patchInitScript index 422d8af926..aff0d9e458 100755 --- a/mod_for_factory_scripts/200patchInitScript +++ b/mod_for_factory_scripts/200patchInitScript @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) 2010 The Chromium OS Authors. All rights reserved. +# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. @@ -25,54 +25,6 @@ diff -Naur old/etc/init/boot-complete.conf new/etc/init/boot-complete.conf +start on started udev EOF -cat >"${ROOT_FS_DIR}/etc/init/factory.conf" <>/var/log/factory.log -if [ ! -e factory_started ]; then - touch factory_started - cp -f site_tests/suite_Factory/control . - ./bin/autotest -t factory control >>/var/log/factory.log 2>&1 -else - ./bin/autotest -t factory -c control >>/var/log/factory.log 2>&1 -fi -end script - -pre-stop script - pkill python - pkill X -end script -EOF - -cat >"${ROOT_FS_DIR}/etc/init/factorylog.conf" </dev/tty3 -end script -EOF - if [ -r "${ROOT_FS_DIR}/etc/init/chrontel.conf" ]; then patch -d "${ROOT_FS_DIR}" -Np1 <