コード例 #1
0
ファイル: remote_target.py プロジェクト: jcsneaker/ramses
 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))
コード例 #2
0
ファイル: remote_target.py プロジェクト: jcsneaker/ramses
 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 = {}
コード例 #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
コード例 #4
0
ファイル: remote_target.py プロジェクト: jcsneaker/ramses
 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)
コード例 #5
0
ファイル: remote_target.py プロジェクト: jcsneaker/ramses
 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)
コード例 #6
0
ファイル: remote_target.py プロジェクト: gunnarx/ramses
 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)
コード例 #7
0
ファイル: remote_target.py プロジェクト: jcsneaker/ramses
 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)
コード例 #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"