Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / packages / Python / lldbsuite / test_event / build_exception.py
blob931c15da0d5ef3efec55b6c00291d77dee97bafd
1 from lldbsuite.support import seven
4 class BuildError(Exception):
5 def __init__(self, called_process_error):
6 super(BuildError, self).__init__("Error when building test subject")
7 self.command = seven.join_for_shell(called_process_error.cmd)
8 self.build_error = called_process_error.output
10 def __str__(self):
11 return self.format_build_error(self.command, self.build_error)
13 @staticmethod
14 def format_build_error(command, command_output):
15 return "Error when building test subject.\n\nBuild Command:\n{}\n\nBuild Command Output:\n{}".format(
16 command, command_output