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

Unified Diff: client/deps/factory/startx.sh

Issue 2857012: Batched update of factory tests. (Closed) Base URL: ssh://gitrw.chromium.org/autotest.git
Patch Set: finished comment Created 10 years, 6 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 | « client/common_lib/factory_test.py ('k') | client/deps/factory/ui » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/deps/factory/startx.sh
diff --git a/client/site_tests/hardware_Touchpad/src/start_test.sh b/client/deps/factory/startx.sh
similarity index 55%
rename from client/site_tests/hardware_Touchpad/src/start_test.sh
rename to client/deps/factory/startx.sh
index e08da681715d9db03bdb5c68788afe3edca648b6..5a38fa32526794375875e3ea4f96ee20191760c9 100755
--- a/client/site_tests/hardware_Touchpad/src/start_test.sh
+++ b/client/deps/factory/startx.sh
@@ -5,18 +5,18 @@
# found in the LICENSE file.
XAUTH=/usr/bin/xauth
+XAUTH_FILE="/var/run/factory_ui.auth"
SERVER_READY=
-
-export XAUTH_FILE="/var/run/factory_test.auth"
+DISPLAY=":0"
user1_handler () {
- echo "X server ready..."
+ echo "X server ready..." 1>&2
SERVER_READY=y
}
trap user1_handler USR1
MCOOKIE=$(head -c 8 /dev/urandom | openssl md5)
-${XAUTH} -q -f ${XAUTH_FILE} add :0 . ${MCOOKIE}
+${XAUTH} -q -f ${XAUTH_FILE} add ${DISPLAY} . ${MCOOKIE}
/sbin/xstart.sh ${XAUTH_FILE} &
@@ -24,13 +24,8 @@ while [ -z ${SERVER_READY} ]; do
sleep .1
done
-export SHELL=/bin/bash
-export DISPLAY=:0.0
-export PATH=/bin:/usr/bin:/usr/local/bin:/usr/bin/X11
-export XAUTHORITY=${XAUTH_FILE}
-
-/usr/bin/python TouchpadTest.py $*
-STATUS=$?
+/sbin/initctl emit factory-ui-started
+cat /proc/uptime > /tmp/uptime-x-started
-/usr/bin/pkill X
-exit $STATUS
+echo "DISPLAY=${DISPLAY}; export DISPLAY"
+echo "XAUTHORITY=${XAUTH_FILE}; export XAUTHORITY"
« no previous file with comments | « client/common_lib/factory_test.py ('k') | client/deps/factory/ui » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698