Skip to content

Commit 7a0a6d7

Browse files
committed
Add stop_match method to MatchManager
Additional functionality in `run_only.py` test
1 parent 74cf62e commit 7a0a6d7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

rlbot/managers/match.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ def start_match(
174174
def disconnect(self):
175175
self.rlbot_interface.disconnect()
176176

177+
def stop_match(self):
178+
self.rlbot_interface.stop_match()
179+
177180
def shut_down(self, ensure_shutdown=True):
178181
self.logger.info("Shutting down RLBot...")
179182

tests/run_only.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@
1010
if __name__ == "__main__":
1111
match_manager = MatchManager(RLBOT_SERVER_FOLDER)
1212
match_manager.start_match(MATCH_CONFIG_PATH, False)
13+
input()
14+
match_manager.stop_match()
1315
match_manager.disconnect()

0 commit comments

Comments
 (0)