From: Eric S. Raymond Date: Thu, 23 May 2013 16:18:20 +0000 (-0400) Subject: Ship 1.9, with -v preserving the build log. X-Git-Tag: 1.9~1 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=6784f0f52b6901edf037383a447459fb015eff4f;p=coverity-submit.git Ship 1.9, with -v preserving the build log. --- diff --git a/NEWS b/NEWS index 67cc8a0..98e20ff 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,8 @@ NEWS file for coverty-submit +1.9 @ 2013-05-23 + The -v option now preserves the build log for diagnostic purposes. + 1.8 @ 2013-04-18 Support new-style config location, ~/.config/coverity-submit diff --git a/coverity-submit b/coverity-submit index c87f305..f66069e 100755 --- a/coverity-submit +++ b/coverity-submit @@ -4,9 +4,9 @@ # # By Eric S. Raymond, May 2012. BSD terms apply. # -import os, sys, ConfigParser, getopt, tempfile +import os, sys, ConfigParser, getopt, tempfile, shutil -version = "1.8" +version = "1.9" if __name__ == '__main__': name = email = project = password = url = None @@ -126,6 +126,8 @@ if __name__ == '__main__': with open(os.path.join(tmpdir, "README"), "w") as wfp: wfp.write(readme) tarball = "%s-scan.tgz" % covname + if verbose: + shutil.copy("cov-int/build-log.txt", "build-log.txt") do_or_die("mv cov-int %s; (cd %s; tar -czf %s README cov-int; rm -fr README cov-int)" % (tmpdir, tmpdir, tarball)) print("Posting the analysis request...") do_or_die('''curl \ diff --git a/coverity-submit.xml b/coverity-submit.xml index 8e3472d..39db612 100644 --- a/coverity-submit.xml +++ b/coverity-submit.xml @@ -111,7 +111,8 @@ project profiles). The option says to display all the commands that would be run without actually executing them. The option -enables slightly more verbose progress messages. +enables slightly more verbose progress messages, and copies the Coverity +build-log.txt from the run to your working directory. The option specifies an arbitrary build version to associate with the submission.