Example #1
0
 def test_directory_name_comparison(self):
     with libear.temporary_directory() as tmp_dir, \
          sut.report_directory(tmp_dir, False) as report_dir1, \
          sut.report_directory(tmp_dir, False) as report_dir2, \
          sut.report_directory(tmp_dir, False) as report_dir3:
         self.assertLess(report_dir1, report_dir2)
         self.assertLess(report_dir2, report_dir3)
Example #2
0
 def test_directory_name_comparison(self):
     with libear.TemporaryDirectory() as tmpdir, \
          sut.report_directory(tmpdir, False) as report_dir1, \
          sut.report_directory(tmpdir, False) as report_dir2, \
          sut.report_directory(tmpdir, False) as report_dir3:
         self.assertLess(report_dir1, report_dir2)
         self.assertLess(report_dir2, report_dir3)
Example #3
0
    def analyze_build(cls, args):
        # type: () -> str
        """ Entry point for analyze-build command. """

        args = cls.parse_args_for_analyze_build(args=args)
        # Overwrite arguments with our custom settings
        args.output = os.getcwd()
        args.output_format = 'plist-multi-file'

        # will re-assign the report directory as new output
        with analyze.report_directory(args.output,
                                      args.keep_empty) as args.output:
            # run the analyzer against a compilation db
            compilations = compilation.CompilationDatabase.load(args.cdb)
            analyze.run_analyzer_parallel(compilations, args)
            # set exit status as it was requested
            return args.output