Example #1
0
 def target_specific_tear_down(self, shutdown=True):
     try:
         Target.target_specific_tear_down(self, shutdown=shutdown)
         if self.isConnected:
             if shutdown:
                 self._shutdown()
             self.sshClient.close()
     except SSHException as e:
         log.warning(
             'Paramiko exception during target_specific_tear_down: ' +
             str(e))
Example #2
0
 def __init__(self, targetInfo, ramsesInstallDir, resultDir,
              imagesDesiredDirs, imageDiffScaleFactor, basePath,
              sshConnectionNrAttempts, sshConnectionTimeoutPerAttempt,
              sshConnectionSleepPerAttempt, powerNrAttempts, logLevel):
     Target.__init__(self, targetInfo, ramsesInstallDir, resultDir,
                     imagesDesiredDirs, imageDiffScaleFactor, logLevel)
     self.basePath = basePath
     self.privateKey = targetInfo.privateKey
     self.sshConnectionNrAttempts = sshConnectionNrAttempts
     self.sshConnectionTimeoutPerAttempt = sshConnectionTimeoutPerAttempt
     self.sshConnectionSleepPerAttempt = sshConnectionSleepPerAttempt
     self.powerNrAttempts = powerNrAttempts
     self.executableExistsOnTarget = {}
Example #3
0
 def __init__(self, targetInfo, ramsesInstallDir, resultDir, imagesDesiredDirs, imageDiffScaleFactor,
              basePath, ramsesVersion, gitCommitCount, gitCommitHash,
              sshConnectionNrAttempts, sshConnectionTimeoutPerAttempt,
              sshConnectionSleepPerAttempt, powerNrAttempts, logLevel):
     Target.__init__(self, targetInfo, ramsesInstallDir, resultDir, imagesDesiredDirs, imageDiffScaleFactor, logLevel)
     self.basePath = basePath
     self.ramsesVersion = ramsesVersion
     self.gitCommitCount = gitCommitCount
     self.gitCommitHash = gitCommitHash
     self.privateKey = targetInfo.privateKey
     self.sshConnectionNrAttempts = sshConnectionNrAttempts
     self.sshConnectionTimeoutPerAttempt = sshConnectionTimeoutPerAttempt
     self.sshConnectionSleepPerAttempt = sshConnectionSleepPerAttempt
     self.powerNrAttempts = powerNrAttempts
Example #4
0
 def _start_ramses_application(self, applicationName, args,
                               workingDirectory, nameExtension, env,
                               dltAppID):
     extendedArgs = args + " -myip " + self.tcpTestsInterfaceIp
     return Target._start_ramses_application(self, applicationName,
                                             extendedArgs, workingDirectory,
                                             nameExtension, env, dltAppID)
Example #5
0
 def start_client(self,
                  applicationName,
                  args="",
                  workingDirectory=None,
                  ramsesDaemonTarget=None,
                  nameExtension="",
                  env={},
                  dltAppID=None):
     extendedArgs = args + self._get_daemon_args(ramsesDaemonTarget)
     return Target.start_client(self, applicationName, extendedArgs,
                                workingDirectory, ramsesDaemonTarget,
                                nameExtension, env, dltAppID)
Example #6
0
 def _start_ramses_application(self, applicationName, args,
                               workingDirectory, nameExtension, env,
                               dltAppID):
     extendedArgs = args + " -myip " + self.tcpTestsInterfaceIp
     if self.tcpAliveIntervalMs:
         extendedArgs += " -tcpAlive {}".format(self.tcpAliveIntervalMs)
     if self.tcpAliveTimeoutMs:
         extendedArgs += " -tcpAliveTimeout {}".format(
             self.tcpAliveTimeoutMs)
     return Target._start_ramses_application(self, applicationName,
                                             extendedArgs, workingDirectory,
                                             nameExtension, env, dltAppID)
Example #7
0
 def start_renderer(self,
                    applicationName,
                    args="",
                    workingDirectory=None,
                    ramsesDaemonTarget=None,
                    nameExtension="",
                    env={},
                    dltAppID='REND',
                    waitForDisplayManagerRamsh=True):
     extendedArgs = args + self._get_daemon_args(ramsesDaemonTarget)
     return Target.start_renderer(self, applicationName, extendedArgs,
                                  workingDirectory, ramsesDaemonTarget,
                                  nameExtension, env, dltAppID,
                                  waitForDisplayManagerRamsh)
Example #8
0
 def __init__(self, targetInfo, ramsesInstallDir, resultDir,
              imagesDesiredDirs, imageDiffScaleFactor, logLevel):
     Target.__init__(self, targetInfo, ramsesInstallDir, resultDir,
                     imagesDesiredDirs, imageDiffScaleFactor, logLevel)
     self.tmpDir = tempfile.gettempdir()
     self.hostname = "127.0.0.1"