Exemplo n.º 1
0
    def getTests(self):
        test_dir = os.path.expandvars("$GIP_LOCATION/reporting")
        test_list = ls(test_dir)
        for test in test_list:
            if test in self.crit:
                self.critical_tests.append("%s/%s" % (test_dir, test))
            else:
                self.reports.append("%s/%s" % (test_dir, test))

        if cp_getBoolean(self.cp, "gip_tests", "enable_glite"):
            test_dir = os.path.expandvars("$GIP_LOCATION/reporting/glite_reports")
            tmp_list = ls(test_dir)
            for i in range(0, len(tmp_list)):
                tmp_list[i] = "%s/%s" % (test_dir, tmp_list[i])
            self.glite_tests.extend(tmp_list)
Exemplo n.º 2
0
    def getTests(self):
        test_dir = os.path.expandvars("$GIP_LOCATION/reporting")
        test_list = ls(test_dir)
        for test in test_list:
            if test in self.crit:
                self.critical_tests.append("%s/%s" % (test_dir, test))
            else:
                self.reports.append("%s/%s" % (test_dir, test))

        if cp_getBoolean(self.cp, "gip_tests", "enable_glite"):
            test_dir = os.path.expandvars(
                "$GIP_LOCATION/reporting/glite_reports")
            tmp_list = ls(test_dir)
            for i in range(0, len(tmp_list)):
                tmp_list[i] = "%s/%s" % (test_dir, tmp_list[i])
            self.glite_tests.extend(tmp_list)
Exemplo n.º 3
0
def getTestResultFileList(results_dir, test_list):
    try:
        test_list = test_list.split(",")
        file_list = []
        ls_list = ls(results_dir)
        for item in ls_list:
            if item[:-4] in test_list:
                file_list.append(item)

    except Exception, e:
        file_list = None
Exemplo n.º 4
0
def getTestResultFileList(results_dir, test_list):
    try:
        test_list = test_list.split(",")
        file_list = []
        ls_list = ls(results_dir)
        for item in ls_list:
            if item[:-4] in test_list:
                file_list.append(item)
        
    except Exception, e:
        file_list = None