Skip to content

Commit

Permalink
add stop server for simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadh committed Jun 8, 2022
1 parent af22ddd commit 9ac0be9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/contrib/hexagon/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ def _start(self):

def cleanup_directory(self):
"""Abstract method implementation. See description in HexagonLauncherRPC."""
shutil.rmtree(self._workspace)
pass

def stop_server(self):
"""Abstract method implementation. See description in HexagonLauncherRPC."""
Expand Down
2 changes: 2 additions & 0 deletions python/tvm/contrib/hexagon/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ def hexagon_launcher(
launcher.start_server()
yield launcher
finally:
if android_serial_number == "simulator":
launcher.stop_server()
launcher.cleanup_directory()


Expand Down

0 comments on commit 9ac0be9

Please sign in to comment.