51
51
execution_manager = None
54
# Some system-level work is constant regardless
55
# of the test to be run
56
system_manager = systemManager(variables)
58
# Create our server_manager
59
server_manager = serverManager(system_manager, variables)
61
# Get our mode-specific test_manager and test_executor
62
(test_manager,test_executor) = handle_mode(variables, system_manager)
64
# Gather our tests for execution
65
test_manager.gather_tests()
67
# Initialize test execution manager
68
execution_manager = executionManager(server_manager, system_manager
69
, test_manager, test_executor
73
execution_manager.execute_tests()
78
except KeyboardInterrupt:
79
print "\n\nDetected <Ctrl>+c, shutting down and cleaning up..."
54
# We do this nested try to accomodate red hat
55
# running python 2.4...seriously? 2.4?
57
# Some system-level work is constant regardless
58
# of the test to be run
59
system_manager = systemManager(variables)
61
# Create our server_manager
62
server_manager = serverManager(system_manager, variables)
64
# Get our mode-specific test_manager and test_executor
65
(test_manager,test_executor) = handle_mode(variables, system_manager)
67
# Gather our tests for execution
68
test_manager.gather_tests()
70
# Initialize test execution manager
71
execution_manager = executionManager(server_manager, system_manager
72
, test_manager, test_executor
76
execution_manager.execute_tests()
81
except KeyboardInterrupt:
82
print "\n\nDetected <Ctrl>+c, shutting down and cleaning up..."
82
85
# TODO - make a more robust cleanup