summaryrefslogtreecommitdiff
path: root/script/land-remote.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-10-01 21:34:31 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-10-02 13:14:51 +0200
commit8ce24a9187f7f93cb3557696034c94fc8be161f1 (patch)
tree70e72d82de8b7fd5ad54d2158ca77c53d19f767f /script/land-remote.py
parent3c85d031d37eb55c32dd3f9f600795ea51a4b935 (diff)
downloadsamba-8ce24a9187f7f93cb3557696034c94fc8be161f1.tar.gz
samba-8ce24a9187f7f93cb3557696034c94fc8be161f1.tar.bz2
samba-8ce24a9187f7f93cb3557696034c94fc8be161f1.zip
land: Add --repository option.
Diffstat (limited to 'script/land-remote.py')
-rwxr-xr-xscript/land-remote.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/land-remote.py b/script/land-remote.py
index 4abc8749ac..eeedcadc1e 100755
--- a/script/land-remote.py
+++ b/script/land-remote.py
@@ -12,6 +12,7 @@ parser.add_option("--remote-repo", help="Location of remote repository (default:
parser.add_option("--host", help="Host to land on (SSH connection string)", type=str, default="sn-devel-104.sn.samba.org")
parser.add_option("--foreground", help="Don't daemonize", action="store_true", default=False)
parser.add_option("--email", help="Email address to send build/test output to", type=str, default=None, metavar="EMAIL")
+parser.add_option("--always-email", help="always send email, even on success", action="store_true")
parser.add_option("--rebase-master", help="rebase on master before testing", default=False, action='store_true')
parser.add_option("--rebase", help="rebase on the given tree before testing", default=None, type='str')
parser.add_option("--passcmd", help="command to run on success", default=None)
@@ -49,6 +50,8 @@ subprocess.check_call(args)
remote_args = ["cd", remote_repo, "&&", "python", "./script/autobuild.py"]
if opts.email:
remote_args.append("--email=%s" % opts.email)
+if opts.always_email:
+ remote_args.append("--always-email")
if not opts.foreground:
remote_args.append("--daemon")
if opts.nocleanup: