@@ -142,7 +142,6 @@ class WalkExecutorService(worker.CoordinatorService):
142142 The user should probably not be calling into this directly. They
143143 should be starting it up via rpyc.
144144 """
145- # TODO: PORT/WRAP
146145 #: Override the type of ``WalkRunner`` used, here or in a child class
147146 WALK_RUNNER_TYPE = WalkRunner
148147 #: Override the type of ``ThreadPool`` used for executing ``Walks``, here
@@ -429,7 +428,6 @@ def _set_supplemental_state(self, walk_id, **kwargs):
429428 self ._state_supplement [walk_id ].update (** kwargs )
430429
431430 def _get_walks_state (self , walk_id , branch_id , state ):
432- # PORT/WRAP
433431 if walk_id not in self ._walk_states :
434432 supplement = {'walk_id' : walk_id ,
435433 'branch_id' : branch_id ,
@@ -461,7 +459,6 @@ def get_full_states(self, full=False):
461459 return states_out
462460
463461 def update_walks_state (self , walk_id , state_update ):
464- # PORT/WRAP
465462 try :
466463 self ._walk_states [walk_id ].update (state_update )
467464 except AttributeError :
@@ -823,7 +820,6 @@ def provide_logs(self, log_dir):
823820 logs [ip ] = client_logs
824821 return logs
825822
826- # TODO: PORT/WRAP
827823def run_tests (walk_order ,
828824 state = None ,
829825 verbose = 1 ,
@@ -835,8 +831,6 @@ def run_tests(walk_order,
835831 max_thread_count = None ,
836832 gather_states = False ,
837833 log_dir = None ,
838- # PORT/WRAP test_path=utils.DEFAULT_TEST_PATH,
839- #**file_config_kwargs,
840834 ):
841835 """
842836 Run a collection of :class:`combtest.walk.Walk`. This should be the main
@@ -906,15 +900,7 @@ def run_tests(walk_order,
906900 central_logger .set_level (central_logger .DEBUG )
907901
908902
909- # PORT/WRAP
910- #if log_dir is None:
911- # log_dir = ac_config.get_log_dir()
912- # if log_dir is None or log_dir == ".":
913- # log_dir = "/var/crash"
914- #log_dir = os.path.join(log_dir, SUBDIR_NAME)
915-
916903 my_ip = utils .get_my_IP ()
917- #rtt.remote_cmd(my_ip, 'isi_for_array "mkdir -p %s"' % log_dir)
918904
919905 if log_dir is not None :
920906 central_logger .log_status ("Log files will be at: %s" , log_dir )
@@ -943,12 +929,10 @@ def run_tests(walk_order,
943929 service_handler_class = service_handler_class
944930 )
945931
946- # PORT/WRAP: pass test_path
947932 remote_log_locations = sg .start_remote_logging (my_ip ,
948933 logger_port ,
949934 log_dir ,
950935 verbose = verbose )
951- # test_path, verbose=verbose)
952936
953937 master_location = ""
954938
@@ -971,18 +955,6 @@ def run_tests(walk_order,
971955 logger .info ("Scattering work" )
972956 start_time = time .time ()
973957
974- # PORT/WRAP
975- #ctx = {}
976- #if file_config_kwargs:
977- # ctx['runner_opts'] = copy.copy(file_config_kwargs)
978- #if verbose:
979- # ctx['verbose'] = True
980-
981- #ctx['test_path'] = test_path
982- #ctx['log_dir'] = log_dir
983-
984- # central_logger.log_status("Test path: %s", test_path)
985-
986958 master_worker_ids = {}
987959 for epoch_list in wo :
988960 logger .info ("Epoch list has %d epochs" ,
@@ -991,13 +963,6 @@ def run_tests(walk_order,
991963 state_copy = copy .copy (state )
992964 if epoch .serial_action is not None :
993965 for branch_id in epoch .branch_ids :
994- # PORT/WRAP
995- #sp_ctx = {"base_dir": test_path,
996- # "branch_id": branch_id,
997- # "service": sg,
998- # "worker_ids": master_worker_ids,
999- # "epoch": epoch
1000- # }
1001966 state_copy = epoch .serial_action (state = state_copy ,
1002967 branch_id = branch_id ,
1003968 epoch = epoch ,
@@ -1068,7 +1033,6 @@ def run_tests(walk_order,
10681033 master_log , failed_tests )
10691034
10701035
1071- # TODO: PORT/WRAP
10721036def replay_walk (walk_to_run , step = False , log_errors = True , state = None ):
10731037 """
10741038 Run a single :class:`combtest.walk.Walk`
@@ -1087,8 +1051,6 @@ def replay_walk(walk_to_run, step=False, log_errors=True, state=None):
10871051 print (str (type (op )))
10881052 raw_input ("Press key to continue..." )
10891053
1090- # PORT/WRAP if verify:
1091- # PORT/WRAP test_file.verify_nonsparse_logical_all()
10921054 except CancelWalk as e :
10931055 return True
10941056 except Exception as e :
0 commit comments