Fix issue that causes linux buildbots to ignore errors

- change string "ERROR" to "FAIL" to match clang lit test results

Also, make LLDB tests work on machines that do not have svn and/or git installed

llvm-svn: 176633
This commit is contained in:
Daniel Malea 2013-03-07 18:39:26 +00:00
parent 093cf41e86
commit 4185a92b9d
1 changed files with 5 additions and 5 deletions

View File

@ -832,11 +832,11 @@ def setupSysPath():
os.environ["LLDB_EXEC"] = lldbExec
#print "The 'lldb' from PATH env variable", lldbExec
if os.path.isdir(os.path.join(base, '.svn')):
pipe = subprocess.Popen(["svn", "info", base], stdout = subprocess.PIPE)
if os.path.isdir(os.path.join(base, '.svn')) and which("svn") is not None:
pipe = subprocess.Popen([which("svn"), "info", base], stdout = subprocess.PIPE)
svn_info = pipe.stdout.read()
elif os.path.isdir(os.path.join(base, '.git')):
pipe = subprocess.Popen(["git", "svn", "info", base], stdout = subprocess.PIPE)
elif os.path.isdir(os.path.join(base, '.git')) and which("git") is not None:
pipe = subprocess.Popen([which("git"), "svn", "info", base], stdout = subprocess.PIPE)
svn_info = pipe.stdout.read()
if not noHeaders:
print svn_info
@ -1446,7 +1446,7 @@ for ia in range(len(archs) if iterArchs else 1):
if method:
method()
if parsable:
self.stream.write("ERROR: LLDB (%s) :: %s\n" % (self._config_string(test), str(test)))
self.stream.write("FAIL: LLDB (%s) :: %s\n" % (self._config_string(test), str(test)))
def addFailure(self, test, err):
global sdir_has_content