def run_test_on_partitions(job, test, partitions, mountpoint_func, tag, fs_opt, do_fsck=True, **dargs):
 for p in partitions:
  p.set_fs_options(fs_opt)
 parallel(partitions, 'setup_before_test', mountpoint_func=mountpoint_func)
 mountpoint = mountpoint_func(partitions[0])
 job.run_test(test, tag=tag, partitions=partitions, dir=mountpoint, **dargs)
 parallel(partitions, 'unmount')
 if do_fsck:
  parallel(partitions, 'fsck')

def run_test_on_partitions ( job , test , partitions , mountpoint_func , tag , fs_opt , do_fsck = True , ** dargs ) : for p in partitions : p . set_fs_options ( fs_opt ) parallel ( partitions , 'setup_before_test' , mountpoint_func = mountpoint_func ) mountpoint = mountpoint_func ( partitions [ 0 ] ) job . run_test ( test , tag = tag , partitions = partitions , dir = mountpoint , ** dargs ) parallel ( partitions , 'unmount' ) if do_fsck : parallel ( partitions , 'fsck' )
run a test that requires multiple partitions .