1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

land-remote: Pass extra arguments on to land.

This commit is contained in:
Jelmer Vernooij 2010-10-03 00:04:59 +02:00
parent 22f633d094
commit b9bef1fd3f
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import optparse
import subprocess
import sys
parser = optparse.OptionParser("autoland-remote [options]")
parser = optparse.OptionParser("autoland-remote [options] [trees...]")
parser.add_option("--remote-repo", help="Location of remote repository (default: temporary repository)", type=str, default=None)
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)
@ -24,7 +24,7 @@ parser.add_option("--fix-whitespace", help="fix whitespace on rebase",
parser.add_option("--fail-slowly", help="continue running tests even after one has already failed",
action="store_true")
(opts, args) = parser.parse_args()
(opts, extra_args) = parser.parse_args()
if not opts.foreground and not opts.email:
print "Not running in foreground and --email not specified."
@ -71,6 +71,7 @@ if opts.rebase:
remote_args.append("--rebase=%s" % opts.rebase)
if opts.passcmd:
remote_args.append("--passcmd=%s" % opts.passcmd)
remote_args += extra_args
print "%s$ %s" % (opts.host, " ".join(remote_args))
args = ["ssh", "-A", opts.host] + remote_args
sys.exit(subprocess.call(args))

View File

@ -201,7 +201,6 @@ class SubunitTreeStageBuilder(TreeStageBuilder):
self.status = self.proc.poll()
if self.status is not None:
self.subunit.close()
import pdb; pdb.set_trace()
return self.status