#!/bin/sh
+# copyright 2012 Holger Levsen <holger@layer-acht.org>
+# GPL2 licenced
+
+# see http://homepage/doc/so-docs/workflows-webtests/ for documentation of this script
+
set -e
-export
+export
TOKEN=$(pwgen)
TEST_LANGUAGE=$(echo $JOB_NAME | cut -d "-" -f2)
exit 1
fi
-ssh -i ~jenkins/.ssh/id_selenium -t selenium@seoul ./runit.sh $TOKEN $TEST_LANGUAGE $TEST_BROWSER $TEST_PORT
+ssh -i ~jenkins/.ssh/id_selenium -t selenium@seoul /usr/lib/wptest/run_from_jenkins.sh $TOKEN $TEST_LANGUAGE $TEST_BROWSER $TEST_PORT
scp -r -i ~jenkins/.ssh/id_selenium selenium@seoul:$TOKEN/* .
ssh -i ~jenkins/.ssh/id_selenium selenium@seoul rm ./$TOKEN -Rf