Adding a class that can be used to run tests in a random order.  If you have
5 tests and 10 machines to run them on, there is a high probability that each
test will be run first on at least one machine, thus giving you initial
feedback much faster.  In addition, the order the tests run will be different
which increases the chances you'll uncover weird and subtle problems.

To use this patch, instead of running tests like this:

  job.run_test('tbench')
  job.run_test('kernbench')
  job.run_test('dbench')

Run tests like this:

  run = run_randomly()
  run.add('tbench')
  run.add('kernbench')
  run.add('dbench')
  run.run(job.run_test)

Signed-off-by: Jeremy Orlow <jorlow@google.com>




git-svn-id: http://test.kernel.org/svn/autotest/trunk@1341 592f7852-d20e-0410-864c-8624ca9c26a4
1 file changed