Nested calls to job.new_container fail.  Change default for root arg to be
current process's current container, rather than the superroot container.

Undeleted old containers tie up resources.  Add routine
cpuset.release_dead_containers() to clean out all idle test* containers
left over from failed prior jobs.  Is not automatically called;
should explicitly add to top of container-specific test scripts.

Bugfix: default mem size and cpu cores should depend on the chosen parent container,
not on the superroot container.

Add cpuset.my_cpus() routine to support N-way container test scripts.

Tested via client/tests/container_twoway/control and via sleeptest.

From: Duane Sand <duanes@google.com>
Signed-off-by: John Admanski <jadmanski@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1506 592f7852-d20e-0410-864c-8624ca9c26a4
2 files changed