summaryrefslogtreecommitdiffstats
path: root/tools/scan-view
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-09-22 01:42:08 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-09-22 01:42:08 +0000
commite673c08c3a1525b32e770d45fff3c4b4cf9b0be3 (patch)
treef40db8a170835014ad3f680f0adb6b2d889683dd /tools/scan-view
parent7345e4782e1218255cad13e7bab5f8104463500d (diff)
scan-view tweak
- Require index.html in provided results directory. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/scan-view')
-rwxr-xr-xtools/scan-view/scan-view7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/scan-view/scan-view b/tools/scan-view/scan-view
index d12c251f8b..e005a26b40 100755
--- a/tools/scan-view/scan-view
+++ b/tools/scan-view/scan-view
@@ -4,6 +4,7 @@
"""
import sys
+import posixpath
import thread
import time
import urllib
@@ -85,9 +86,13 @@ def main():
(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: