Example #1
0
 def createSuiteLog(self):
     # /srv/slapgrid/slappartXX/srv/var/log/testnode/az-mlksjfmlk234Sljssdflkj23KSdfslj/suite.log
     alphabets = string.digits + string.letters
     rand_part = "".join(random.choice(alphabets) for i in xrange(32))
     random_suite_folder_id = "%s-%s" % (self.reference, rand_part)
     suite_log_directory = os.path.join(self.log_directory, random_suite_folder_id)
     SlapOSControler.createFolders(suite_log_directory)
     self.suite_log_path = os.path.join(suite_log_directory, "suite.log")
     return self.getSuiteLogPath(), random_suite_folder_id
Example #2
0
 def createSuiteLog(self):
     # /srv/slapgrid/slappartXX/srv/var/log/testnode/az-mlksjfmlk234Sljssdflkj23KSdfslj/suite.log
     alphabets = string.digits + string.letters
     rand_part = ''.join(random.choice(alphabets) for i in xrange(32))
     random_suite_folder_id = '%s-%s' % (self.reference, rand_part)
     suite_log_directory = os.path.join(self.log_directory,
                                        random_suite_folder_id)
     SlapOSControler.createFolders(suite_log_directory)
     self.suite_log_path = os.path.join(suite_log_directory, 'suite.log')
     return self.getSuiteLogPath(), random_suite_folder_id
Example #3
0
 def createSuiteLog(self):
     # /srv/slapgrid/slappartXX/srv/var/log/testnode/az-mlksjfmlk234Sljssdflkj23KSdfslj/suite.log
     alphabets = string.digits + string.letters
     rand_part = ''.join(random.choice(alphabets) for i in xrange(32))
     random_suite_folder_id = '%s-%s' % (self.reference, rand_part)
     suite_log_directory = os.path.join(self.log_directory,
                                        random_suite_folder_id)
     SlapOSControler.createFolders(suite_log_directory)
     # XXX copy the whole content of the log viewer app
     for fname in glob.glob(
             os.path.join(os.path.dirname(__file__), 'js-logtail', '*')):
         shutil.copy(fname, suite_log_directory)
     self.suite_log_path = os.path.join(suite_log_directory, 'suite.log')
     return self.getSuiteLogPath(), random_suite_folder_id
Example #4
0
 def createSuiteLog(self):
   # /srv/slapgrid/slappartXX/srv/var/log/testnode/az-mlksjfmlk234Sljssdflkj23KSdfslj/suite.log
   alphabets = string.digits + string.letters
   rand_part = ''.join(random.choice(alphabets) for i in xrange(32))
   random_suite_folder_id = '%s-%s' % (self.reference, rand_part)
   suite_log_directory = os.path.join(self.log_directory,
                                      random_suite_folder_id)
   SlapOSControler.createFolders(suite_log_directory)
   # XXX copy the whole content of the log viewer app
   for fname in glob.glob(os.path.join(os.path.dirname(__file__), 'js-logtail', '*')):
     shutil.copy(fname, suite_log_directory)
   self.suite_log_path = os.path.join(suite_log_directory,
                                      'suite.log')
   return self.getSuiteLogPath(), random_suite_folder_id