def __init__(self, cmd=None): # set up building environment # root directory self.openlilylib_dir = self.__openlilylib_dir() if 'CI' in os.environ and bool(os.environ["CI"]): # TODO check definition lily_platform = os.environ["LILY_PLATFORM"] lily_version = os.environ["LILY_VERSION"] self.lily_command = LilyCmd.with_version(lily_platform, lily_version) if not self.lily_command.installed: raise Exception( 'The required lilypond version is not installed') self.lilypond_version = self.lily_command.version else: self.lily_command = LilyCmd.system(cmd if cmd else "lilypond") self.lilypond_version = self.lily_command.version # Add include path and other options to generated LilyPond command self.lily_command_with_includes_args = [ "-dno-point-and-click", "-I", self.openlilylib_dir, "-I", os.path.join(self.openlilylib_dir, "ly") ] # initialize some lists self.test_files = [] self.included_tests = [] self.excluded_tests = [] self.failed_tests = {}
def __init__(self, cmd=None): # set up building environment # root directory self.openlilylib_dir = self.__openlilylib_dir() if 'CI' in os.environ and bool(os.environ["CI"]): # TODO check definition lily_platform = os.environ["LILY_PLATFORM"] lily_version = os.environ["LILY_VERSION"] self.lily_command = LilyCmd.with_version(lily_platform, lily_version) if not self.lily_command.installed: raise Exception('The required lilypond version is not installed') self.lilypond_version = self.lily_command.version else: self.lily_command = LilyCmd.system(cmd if cmd else "lilypond") self.lilypond_version = self.lily_command.version # Add include path and other options to generated LilyPond command self.lily_command_with_includes_args = [ "-dno-point-and-click", "-I", self.openlilylib_dir, "-I", os.path.join(self.openlilylib_dir, "ly")] # initialize some lists self.test_files = [] self.included_tests = [] self.excluded_tests = [] self.failed_tests = {}