Provide the ability to drop caches between benchmark iteration runs
Signed-off-by: Martin Bligh <[email protected]>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2518 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/server/server_job.py b/server/server_job.py
index df944a0..5e8f930 100755
--- a/server/server_job.py
+++ b/server/server_job.py
@@ -64,6 +64,8 @@
<autodir>/server/site_tests/
control
the control file for this job
+ drop_caches_between_iterations
+ drop the pagecache between each iteration
"""
STATUS_VERSION = 1
@@ -73,18 +75,15 @@
client=False, parse_job='',
ssh_user='root', ssh_port=22, ssh_pass=''):
"""
- control
- The control file (pathname of)
- args
- args to pass to the control file
- resultdir
- where to throw the results
- label
- label for the job
- user
- Username for the job (email address)
- client
- True if a client-side control file
+ Server side job object.
+
+ Parameters:
+ control: The control file (pathname of)
+ args: args to pass to the control file
+ resultdir: where to throw the results
+ label: label for the job
+ user: Username for the job (email address)
+ client: True if a client-side control file
"""
path = os.path.dirname(__file__)
self.autodir = os.path.abspath(os.path.join(path, '..'))
@@ -123,6 +122,7 @@
self.run_test_cleanup = True
self.last_boot_tag = None
self.hosts = set()
+ self.drop_caches_between_iterations = False
self.stdout = fd_stack.fd_stack(1, sys.stdout)
self.stderr = fd_stack.fd_stack(2, sys.stderr)