End web thread successfully when cleaning up after a tab, which prevents crashes after running the tests; and fix msi_filename in Windows build script

This commit is contained in:
Micah Lee 2020-11-09 19:47:57 -08:00
parent c7cec56408
commit 64227a9445
3 changed files with 8 additions and 4 deletions

View File

@ -39,7 +39,9 @@ def main():
print("○ Create the binary")
run(["briefcase", "create"], desktop_dir)
run(["briefcase", "package"], desktop_dir)
msi_filename = glob.glob(os.path.join(cli_dir, "windows", "OnionShare-*.msi"))[0]
msi_filename = glob.glob(os.path.join(desktop_dir, "windows", "OnionShare-*.msi"))[
0
]
print(f"○ Created unsigned installer: {msi_filename}")
print(f"○ Signing installer")

View File

@ -663,4 +663,6 @@ class Tab(QtWidgets.QWidget):
return False
def cleanup(self):
self.get_mode().web_thread.quit()
self.get_mode().web_thread.wait()
self.app.cleanup()

View File

@ -1,5 +1,5 @@
#!/bin/bash
pytest -v tests/test_gui_tabs.py
pytest -v tests/test_gui_share.py
pytest -v tests/test_gui_receive.py
pytest -v tests/test_gui_tabs.py && \
pytest -v tests/test_gui_share.py && \
pytest -v tests/test_gui_receive.py && \
pytest -v tests/test_gui_website.py