コード例 #1
0
    def _get_file(cls, master, builder, test_type, filename):
        files = TestFile.get_files(master, builder, test_type, filename)
        if files:
            return files[0]

        file = TestFile()
        file.master = master
        file.builder = builder
        file.test_type = test_type
        file.name = filename
        file.data = ""
        return file
コード例 #2
0
ファイル: jsonresults.py プロジェクト: venkatarajasekhar/Qt
    def _get_file(cls, master, builder, test_type, filename):
        files = TestFile.get_files(master, builder, test_type, filename)
        if files:
            return files[0]

        file = TestFile()
        file.master = master
        file.builder = builder
        file.test_type = test_type
        file.name = filename
        file.data = ""
        return file
コード例 #3
0
    def _get_aggregate_file(cls, master, builder, test_type, filename,
                            deprecated_master):
        files = TestFile.get_files(master, builder, test_type, None, filename)
        if files:
            return files[0]

        if deprecated_master:
            files = TestFile.get_files(deprecated_master, builder, test_type,
                                       None, filename)
            if files:
                deprecated_file = files[0]
                # Change the master so it gets saved out with the new master name.
                deprecated_file.master = master
                return deprecated_file

        file = TestFile()
        file.master = master
        file.builder = builder
        file.test_type = test_type
        file.build_number = None
        file.name = filename
        file.data = ""
        return file
コード例 #4
0
    def _get_aggregate_file(cls, master, builder, test_type, filename, deprecated_master):
        files = TestFile.get_files(master, builder, test_type, None, filename)
        if files:
            return files[0]

        if deprecated_master:
            files = TestFile.get_files(deprecated_master, builder, test_type, None, filename)
            if files:
                deprecated_file = files[0]
                # Change the master so it gets saved out with the new master name.
                deprecated_file.master = master
                return deprecated_file

        file = TestFile()
        file.master = master
        file.builder = builder
        file.test_type = test_type
        file.build_number = None
        file.name = filename
        file.data = ""
        return file
コード例 #5
0
ファイル: jsonresults.py プロジェクト: venkatarajasekhar/Qt
 def update_file(cls, builder, file, incremental_json, num_runs):
     new_results, status_code = cls.merge(builder, file.data, incremental_json, num_runs)
     if status_code != 200:
         return new_results, status_code
     return TestFile.save_file(file, new_results)
コード例 #6
0
 def update_file(cls, builder, file, incremental_json, num_runs):
     new_results, status_code = cls.merge(builder, file.data,
                                          incremental_json, num_runs)
     if status_code != 200:
         return new_results, status_code
     return TestFile.save_file(file, new_results)