autotest: add a flag to force to run all the update commands when deployment
Previously, deploy script will skip certain update commands when the
corresponding repos or script are not changed. For some cases, we may
need to force to run these commands. Add an option for this use case.
BUG=chromium:648425
TEST=Test on test server
Change-Id: I464afc7bfd945e0f4ccf6dced6dd468df4397b97
Reviewed-on: https://chromium-review.googlesource.com/387292
Reviewed-by: Shuqian Zhao <shuqianz@chromium.org>
Tested-by: Shuqian Zhao <shuqianz@chromium.org>
diff --git a/site_utils/deploy_server.py b/site_utils/deploy_server.py
index a77a58f..e5fe5ea 100755
--- a/site_utils/deploy_server.py
+++ b/site_utils/deploy_server.py
@@ -117,6 +117,8 @@
help='What is the main server for this installation? (cautotest).')
parser.add_argument('--update_push_servers', action='store_true',
help='Indicate to update test_push servers.')
+ parser.add_argument('--force_update', action='store_true',
+ help='Force to run update commands for afe, tko, build_externals')
parser.add_argument('--dryrun', action='store_true',
help='Don\'t actually run remote commands.')
parser.add_argument('args', nargs=argparse.REMAINDER,