@@ -230,6 +230,7 @@ def test_tools(self,
230230 log = None ,
231231 test_user_api_key = None ,
232232 test_user = "ephemeris@galaxyproject.org" ,
233+ test_history_name = None ,
233234 parallel_tests = 1 ,
234235 test_all_versions = False ,
235236 client_test_config_path = None ,
@@ -261,7 +262,16 @@ def test_tools(self,
261262 else :
262263 client_test_config = None
263264
264- test_history = galaxy_interactor .new_history ()
265+ if test_history_name :
266+ for history in self .gi .histories .get_histories (name = test_history_name , deleted = False ):
267+ test_history = history ['id' ]
268+ log .debug ("Using existing history with id '%s', last updated: %s" ,
269+ test_history , history ['update_time' ])
270+ break
271+ else :
272+ test_history = galaxy_interactor .new_history (history_name = test_history_name )
273+ else :
274+ test_history = galaxy_interactor .new_history ()
265275
266276 with ThreadPoolExecutor (max_workers = parallel_tests ) as executor :
267277 try :
@@ -624,6 +634,7 @@ def main():
624634 log = log ,
625635 test_user_api_key = args .test_user_api_key ,
626636 test_user = args .test_user ,
637+ test_history_name = args .test_history_name ,
627638 parallel_tests = args .parallel_tests ,
628639 test_all_versions = args .test_all_versions ,
629640 client_test_config_path = args .client_test_config ,
0 commit comments