Change the autotest.run implementation to only automatically add
profilers to client runs on non-background runs. We can't stop the
profilers and collect the results anyway since control of the run
is left to the code launching the background client, and these runs
are generally internal processes that shouldn't be profiled anyway.
Risk: Low
Visibility: No more profilers on top of background client jobs.
Signed-off-by: John Admanski <jadmanski@google.com
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3087 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/autotest.py b/server/autotest.py
index d1bdb56..d6b185e 100644
--- a/server/autotest.py
+++ b/server/autotest.py
@@ -296,7 +296,7 @@
pass
# on full-size installs, turn on any profilers the server is using
- if not self.lightweight:
+ if not self.lightweight and not atrun.background:
running_profilers = host.job.profilers.add_log.iteritems()
for profiler, (args, dargs) in running_profilers:
call_args = [repr(profiler)]