script/autobuild.py: add --enable-coverage option
authorJoe Guo <joeg@catalyst.net.nz>
Fri, 3 May 2019 14:32:40 +0000 (02:32 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 10 May 2019 08:19:17 +0000 (08:19 +0000)
Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
script/autobuild.py

index 195b2c9..9cc29ff 100755 (executable)
@@ -86,6 +86,9 @@ parser.add_option("", "--attach-logs", help="Attach logs to mails sent on succes
                   default=False, action="store_true")
 parser.add_option("", "--restrict-tests", help="run as make test with this TESTS= regex",
                   default='')
+parser.add_option("--enable-coverage", dest='enable_coverage',
+                  action="store_const", const='--enable-coverage', default='',
+                  help="Add --enable-coverage option while configure")
 
 (options, args) = parser.parse_args()