Add the ability to specify a label.

BUG=chromium-os:29829
TEST=local

Change-Id: I924fe7fdeb14f1024fd21fbe70b97806215c4136
Reviewed-on: https://gerrit.chromium.org/gerrit/24910
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Peter Mayo <petermayo@chromium.org>
Commit-Ready: Peter Mayo <petermayo@chromium.org>
diff --git a/run_remote_tests.sh b/run_remote_tests.sh
index 5c1a236..2758576 100755
--- a/run_remote_tests.sh
+++ b/run_remote_tests.sh
@@ -19,6 +19,7 @@
 DEFINE_boolean build ${FLAGS_FALSE} "Build tests while running" b
 DEFINE_boolean cleanup ${FLAGS_FALSE} "Clean up temp directory"
 DEFINE_integer iterations 1 "Iterations to run every top level test" i
+DEFINE_string label "" "The label to use for the test job."
 # These are passed directly so if strings are to be passed they need to be
 # quoted with \". Example --profiler_args="options=\"hello\"".
 DEFINE_string profiler_args "" \
@@ -487,7 +488,8 @@
     fi
 
     local autoserv_args="-m ${FLAGS_remote} --ssh-port ${FLAGS_ssh_port} \
-        ${image} ${option} ${control_file} -r ${results_dir} ${verbose}"
+        ${image} ${option} ${control_file} -r ${results_dir} ${verbose} \
+        ${FLAGS_label:+ -l $FLAGS_label}"
 
     sudo chmod a+w ./server/{tests,site_tests}