Ejemplo n.º 1
0
    def __init__(self, aSequenceRunner, aLsfInfo):
        super().__init__(aSequenceRunner)

        self.group = aLsfInfo.parameter("group")
        self.sla = aLsfInfo.parameter("sla")
        self.queue = aLsfInfo.parameter("queue")
        self.core_file_size = LsfDefaults.CoreFileSize
        self.red_zone = bool(not SysUtils.check_host("SAN"))
        self.shell_log = "%s.lsf" % str(aSequenceRunner)
        self.lsf_log = "lsf.%J"
Ejemplo n.º 2
0
    def check_simulator(self):
        if SysUtils.check_host("SAN"):
            Msg.dbg("System is in Green Zone .....")
            my_gcc_path = "/project/software/public/gcc/5.1/centos6.6/lib64"
            my_lib_path = SysUtils.envar("LD_LIBRARY_PATH", None)

            if not my_lib_path:
                SysUtils.envar_set("LD_LIBRARY_PATH", my_gcc_path)
            elif my_lib_path.find(my_gcc_path) < 0:
                SysUtils.envar_set("LD_LIBRARY_PATH",
                                   "%s:%s" % (my_gcc_path, my_lib_path))

            Msg.dbg("LD_LIB_PATH: %s " % (str(my_lib_path)))
            Msg.dbg('"LD_LIBRARY_PATH" = %s' %
                    (str(SysUtils.envar("LD_LIBRARY_PATH", None))))

        else:
            Msg.dbg("System is Red Zone or Yellow Zone")

        return True