From e0e36ea9cc8c05908703b0c46f8b3dd347c8b86f Mon Sep 17 00:00:00 2001 From: James Hunt Date: Sun, 17 Mar 2013 16:18:35 +0000 Subject: [PATCH] Add ability to specify project build (-b) and tag/description (-t). --- coverity-submit | 12 +++++++++++- coverity-submit.xml | 9 +++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/coverity-submit b/coverity-submit index 27f7a7e..04c693a 100755 --- a/coverity-submit +++ b/coverity-submit @@ -34,10 +34,16 @@ if __name__ == '__main__': # Deduce what project and directory to operate on (and go there). noexec = False verbose = False - (opts, args) = getopt.getopt(sys.argv[1:], "nv") + build_version = None + description = None + (opts, args) = getopt.getopt(sys.argv[1:], "b:nt:v") for (opt, arg) in opts: + if opt == '-b': + build_version = arg if opt == '-n': noexec = True + if opt == '-t': + description = arg if opt == '-v': verbose = True where = os.path.basename(os.getcwd()) @@ -106,6 +112,8 @@ if __name__ == '__main__': Name: %(name)s Email: %(email)s Project: %(covname)s + Build-Version : %(build_version)s + Description: %(description)s Submitted-by: coverity-submit """ % globals() if verbose: @@ -122,6 +130,8 @@ if __name__ == '__main__': --form project=%(covname)s \ --form password=%(password)s \ --form email=%(email)s \ + --form version=%(build_version)s \ + --form description=%(description)s \ http://scan5.coverity.com/cgi-bin/upload.py \ ''' % globals()) try: diff --git a/coverity-submit.xml b/coverity-submit.xml index 98ac5f5..0061bb9 100644 --- a/coverity-submit.xml +++ b/coverity-submit.xml @@ -19,7 +19,9 @@ coverity-submit + -b build-version -n + -t project-tag -v project-name @@ -110,6 +112,13 @@ project profiles). would be run without actually executing them. The option enables slightly more verbose progress messages. +The option specifies an arbitrary build +version to associate with the submission. + +The option specifies an arbitrary project tag +or description to associate with the submission. This text is visible in the +"snapshots" view of the Coverity web interface. + Once coverity-submit has determined which project profile to use, it then performs the following steps: -- 2.43.0