示例#1
0
def remove_client(client_name):
    assert_client_exist(client_name)
    #p4 = P4()
    #p4.connect()
    #p4.delete_client(client_name)
    cmd = "p4 client -d " + client_name
    ostream = sys.stdout
    cmd_util.run_cmd_oneline(ostream, cmd)
示例#2
0
    def apply_region(self, region_file):
        if not region_file:
            return

        cmd = self.covselect + " --file " + self.cov_file + " --import " + region_file

        show_env = []

        cmd_util.run_cmd_oneline(self.ostream, cmd, None, None, show_env)
示例#3
0
    def off(self):
        cmd = self.cov01 + " --off"

        env = os.environ.copy()
        env["COVFILE"] = self.cov_file
        env["COVBUILDZONE"] = self.build_zone
        show_env = ["COVFILE", "COVBUILDZONE"]

        cmd_util.run_cmd_oneline(self.ostream, cmd, None, env, show_env)
示例#4
0
    def generate_bullshtml(self):
        cmd = "java -jar " + self.bullshtml_jar + " -f " + self.cov_file + " -s " + self.build_zone + " -c " + self.covxml + " " + self.bullshtml_folder

        show_env = []

        cmd_util.run_cmd_oneline(self.ostream, cmd, None, None, show_env)
示例#5
0
    def generate_html(self):
        cmd = self.covhtml + " --file " + self.cov_file + " " + self.html_folder

        show_env = []

        cmd_util.run_cmd_oneline(self.ostream, cmd, None, None, show_env)