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

Unified Diff: src/scripts/mod_for_test_scripts/350addTestAuthKeys

Issue 1650001: Add local dir's to path. SSH and SU respect paths in etc environment (Closed)
Patch Set: Fix touch Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/mod_for_test_scripts/350addTestAuthKeys
diff --git a/src/scripts/mod_for_test_scripts/350addTestAuthKeys b/src/scripts/mod_for_test_scripts/350addTestAuthKeys
index cc3967db22642005aaec2f838125c2aceb0d9464..07da2e26cb8c07fb4b5a81ada9afcf39052fffe7 100755
--- a/src/scripts/mod_for_test_scripts/350addTestAuthKeys
+++ b/src/scripts/mod_for_test_scripts/350addTestAuthKeys
@@ -7,10 +7,14 @@
# Copy public keys to root's homedir for ssh pubkey auth, which
# is necessary for test automation.
-echo "Copying public keys"
+echo "Copying public keys and changing PATH for ssh clients"
KEYS_DIR=${GCLIENT_ROOT}/src/scripts/mod_for_test_scripts/ssh_keys
mkdir -p ${ROOT_FS_DIR}/root/.ssh
ROOT_AUTHKEYS=${ROOT_FS_DIR}/root/.ssh/authorized_keys
cat ${KEYS_DIR}/*.pub >> ${ROOT_AUTHKEYS}
+# Environment on test machines for su and ssh now set to include
+touch ${ROOT_FS_DIR}/etc/environment
+echo "PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" \
+ >> "${ROOT_FS_DIR}/etc/environment"
« 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