Best Python code snippet using autotest_python
profilers.py
Source:profilers.py
...71 for hostname in set(in_use_hosts) - profiler_hosts:72 host = in_use_hosts[hostname]73 tmp_dir = host.get_tmp_dir(parent=PROFILER_TMPDIR)74 at = autotest.Autotest(host)75 at.install_no_autoserv(autodir=tmp_dir)76 self.installed_hosts[host.hostname] = (host, at, tmp_dir)77 # drop any installs from hosts no longer in job.hosts78 for hostname in profiler_hosts - set(in_use_hosts):79 del self.installed_hosts[hostname]80 def _get_hosts(self, host=None):81 """82 Returns a list of (Host, Autotest, install directory) tuples for hosts83 currently supported by this profiler. The returned Host object is always84 the one created by this profiler, regardless of what's passed in. If85 'host' is not None, all entries not matching that host object are86 filtered out of the list.87 """88 if host is None:89 return self.installed_hosts.values()...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!