Beispiel #1
0
 def setValue(self, name, value):
     #from runner import gShareDataLock, gShareData
     gShareDataLock.acquire()
     try:
         gShareData[name] = value
     except Exception as e:
         self.setFail(str(e) + '\n' + traceback.format_exc())
         print(e)
     gShareDataLock.release()
     return gShareData[name]
Beispiel #2
0
 def setValue(self, name, value):
     #from runner import gShareDataLock, gShareData
     gShareDataLock.acquire()
     try:
         gShareData[name]=value
     except Exception as e:
         self.setFail(str(e)+'\n'+traceback.format_exc())
         print(e)
     gShareDataLock.release()
     return gShareData[name]
Beispiel #3
0
 def appendValue(self,name,value):
    # from runner import gShareDataLock, gShareData
     gShareDataLock.acquire()
     try:
         if gShareData.has_key(name):
             gShareData[name].append(value)
         else:
             gShareData[name]=value
     except Exception as e:
         self.setFail(str(e)+'appendValue(name=%s)\n'%name+traceback.format_exc())
         print(e)
     gShareDataLock.release()
     return gShareData[name]
Beispiel #4
0
 def appendValue(self, name, value):
     # from runner import gShareDataLock, gShareData
     gShareDataLock.acquire()
     try:
         if gShareData.has_key(name):
             gShareData[name].append(value)
         else:
             gShareData[name] = value
     except Exception as e:
         self.setFail(
             str(e) + 'appendValue(name=%s)\n' % name +
             traceback.format_exc())
         print(e)
     gShareDataLock.release()
     return gShareData[name]