Exemple #1
0
 def writeCommandLog(self, log):
     try:
         self.the__lock.acquire()
         f = open(
             os.path.join(
                 Campaign.getCurrentCampaign().campaignResultsDir, "__host__test__{0}__.log".format(self.name)
             ),
             "a",
         )
         f.write(log)
         f.close()
     finally:
         try:
             self.the__lock.release()
         except RuntimeError:
             pass