land: Inherit EMAIL from the environment.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 3 Oct 2010 13:06:51 +0000 (15:06 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 3 Oct 2010 14:25:37 +0000 (16:25 +0200)
script/land-remote.py

index a705165f47889cdbda35c2cd89468ea64f79e746..4a9c3fac8e843f579a73717e9bc22e0ac4e10341 100755 (executable)
@@ -34,6 +34,9 @@ parser.add_option("--fail-slowly", help="continue running tests even after one h
 
 (opts, extra_args) = parser.parse_args()
 
+if opts.email is None and os.getenv("EMAIL") is not None:
+    opts.email = os.getenv("EMAIL")
+
 if not opts.foreground and not opts.email:
     print "Not running in foreground and --email not specified."
     sys.exit(1)