Change job.new_container to just use root='' as the default.
Signed-off-by: John Admanski <jadmanski@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1385 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/bin/job.py b/client/bin/job.py
index c05ceaa..d88c5d3 100755
--- a/client/bin/job.py
+++ b/client/bin/job.py
@@ -343,13 +343,11 @@
return result
- def new_container(self, mbytes=None, cpus=None, root=None, name=None):
+ def new_container(self, mbytes=None, cpus=None, root='', name=None):
if not grep('cpuset', '/proc/filesystems'):
print "Containers not enabled by latest reboot"
return # containers weren't enabled in this kernel boot
pid = os.getpid()
- if root is None:
- root = 'sys'
if not name:
name = 'test%d' % pid # make arbitrary unique name
self.container = cpuset.cpuset(name, job_size=mbytes,