forked from OSchip/llvm-project
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:
parent
2eaa26e8ea
commit
c653d4c574
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue