Fixed logic error; checking return status and raising exception should only be

done if the environment variable LLDB_LOG is defined.

llvm-svn: 107508
This commit is contained in:
Johnny Chen 2010-07-02 20:35:23 +00:00
parent 2eaa26e8ea
commit c653d4c574
1 changed files with 2 additions and 3 deletions

View File

@ -151,9 +151,8 @@ res = lldb.SBCommandReturnObject()
if ("LLDB_LOG" in os.environ):
ci.HandleCommand(
"log enable -f " + os.environ["LLDB_LOG"] + " lldb default", res)
pass
if not res.Succeeded():
raise Exception('log enable failed (check your LLDB_LOG env variable...')
if not res.Succeeded():
raise Exception('log enable failed (check your LLDB_LOG env variable...')
unittest.TextTestRunner(verbosity=verbose).run(suite)