From: Enrico Granata Date: Fri, 15 Feb 2013 00:32:05 +0000 (+0000) Subject: Daniel Malea caught an issue where calling dotest.py with an invalid directory would... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8628bc59e0e64725fdc7ffe1294583ad8ad3700e;p=platform%2Fupstream%2Fllvm.git Daniel Malea caught an issue where calling dotest.py with an invalid directory would cause the progressbar init code to raise an exception This commit fixes it llvm-svn: 175229 --- diff --git a/lldb/test/dotest.py b/lldb/test/dotest.py index 4898004..fdebd71 100755 --- a/lldb/test/dotest.py +++ b/lldb/test/dotest.py @@ -1342,8 +1342,12 @@ for ia in range(len(archs) if iterArchs else 1): # This counts from 1 .. suite.countTestCases(). self.counter = 0 (width, height) = LLDBTestResult.getTerminalSize() + self.progressbar = None if width > 10: - self.progressbar = progress.ProgressWithEvents(stdout=self.stream,start=0,end=suite.countTestCases(),width=width-10) + try: + self.progressbar = progress.ProgressWithEvents(stdout=self.stream,start=0,end=suite.countTestCases(),width=width-10) + except: + self.progressbar = None def _exc_info_to_string(self, err, test): """Overrides superclass TestResult's method in order to append