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))
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 = {}
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
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)
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)
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)
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)
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"