Fix the container check.
From: Jean-Marc Eurin <jmeurin@google.com>
Signed-off-by: John Admanski <jadmanski@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1290 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/bin/job.py b/client/bin/job.py
index bd6a1b6..11b8a97 100755
--- a/client/bin/job.py
+++ b/client/bin/job.py
@@ -354,7 +354,7 @@
def new_container(self, mbytes=None, cpus=None, root=None, name=None):
- if grep('cpusets', '/proc/filesystems'):
+ 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()
@@ -725,4 +725,3 @@
myjob.record('WARN', None, 'disk_usage',
'disk usage on root is greater than 5Mb')
myjob.complete(0)
-