mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-07 10:22:12 +01:00
Modify scripts to be more informative and add autox/autologin for build script
Review URL: http://codereview.chromium.org/661203
This commit is contained in:
parent
d6bf1010bd
commit
6b8f1cf53e
@ -21,7 +21,8 @@ DEFAULT_TESTS_LIST="all"
|
||||
|
||||
DEFINE_string build "${DEFAULT_TESTS_LIST}" \
|
||||
"a comma seperated list of autotest client tests to be prebuilt." b
|
||||
DEFINE_boolean prompt $FLAGS_TRUE "Prompt user when building all tests"
|
||||
DEFINE_boolean prompt $FLAGS_TRUE "Prompt user when building all tests."
|
||||
DEFINE_boolean autox $FLAGS_TRUE "Build autox along with autotest"
|
||||
|
||||
# More useful help
|
||||
FLAGS_HELP="usage: $0 [flags]"
|
||||
@ -64,5 +65,12 @@ else
|
||||
TEST_LIST=${FLAGS_build}
|
||||
fi
|
||||
|
||||
# Decide whether or not to build autox and set use flag
|
||||
if [ $FLAGS_autox -eq "$FLAGS_TRUE" ] ; then
|
||||
USE=
|
||||
else
|
||||
USE=-autox
|
||||
fi
|
||||
|
||||
GCLIENT_ROOT="${GCLIENT_ROOT}" TEST_LIST=${TEST_LIST} \
|
||||
"emerge-${FLAGS_board}" chromeos-base/autotest
|
||||
USE="$USE" "emerge-${FLAGS_board}" chromeos-base/autotest
|
||||
@ -7,6 +7,8 @@
|
||||
# Copy public keys to root's homedir for ssh pubkey auth, which
|
||||
# is necessary for test automation.
|
||||
|
||||
echo "Copying public keys"
|
||||
|
||||
KEYS_DIR=ssh_keys
|
||||
ROOT_AUTHKEYS=/root/.ssh/authorized_keys
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
# start sshd at os init time.
|
||||
|
||||
echo "Enabling sshd."
|
||||
cp -pf sshd.conf /etc/init/sshd.conf
|
||||
chmod 644 /etc/init/sshd.conf
|
||||
chown 0:0 /etc/init/sshd.conf
|
||||
|
||||
9
mod_for_test_scripts/700enableAutoxLogin
Executable file
9
mod_for_test_scripts/700enableAutoxLogin
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (c) 2009 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.
|
||||
|
||||
# enable autox login by disabling remembering of last username
|
||||
echo "Enabling autologin using autox."
|
||||
touch "/root/.forget_usernames"
|
||||
Loading…
x
Reference in New Issue
Block a user