[cfe-commits] r56423 - /cfe/trunk/tools/scan-view/scan-view
Daniel Dunbar
daniel at zuster.org
Sun Sep 21 18:42:08 PDT 2008
Author: ddunbar
Date: Sun Sep 21 20:42:08 2008
New Revision: 56423
URL: http://llvm.org/viewvc/llvm-project?rev=56423&view=rev
Log:
scan-view tweak
- Require index.html in provided results directory.
Modified:
cfe/trunk/tools/scan-view/scan-view
Modified: cfe/trunk/tools/scan-view/scan-view
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-view/scan-view?rev=56423&r1=56422&r2=56423&view=diff
==============================================================================
--- cfe/trunk/tools/scan-view/scan-view (original)
+++ cfe/trunk/tools/scan-view/scan-view Sun Sep 21 20:42:08 2008
@@ -4,6 +4,7 @@
"""
import sys
+import posixpath
import thread
import time
import urllib
@@ -85,9 +86,13 @@
(options, args) = parser.parse_args()
if len(args) != 1:
- parser.error('invalid number of arguments.')
+ parser.error('No results directory specified.')
root, = args
+ # Make sure this directory is in a reasonable state to view.
+ if not posixpath.exists(posixpath.join(root,'index.html')):
+ parser.error('Invalid directory, analysis results not found!')
+
# Kick off thread to wait for server and start web browser, if
# requested.
if options.startBrowser:
More information about the cfe-commits
mailing list