def run_test(test_info):
 pid = os.fork()
 if (pid is 0):
  run_child_process(test_info)
 child_pid = pid
 try:
  test_info.run_script()
 finally:
  os.kill(child_pid, 9)

def run_test ( test_info ) : pid = os . fork ( ) if ( pid is 0 ) : run_child_process ( test_info ) child_pid = pid try : test_info . run_script ( ) finally : os . kill ( child_pid , 9 )
run test and print result .