Skip to content

Commit 5866438

Browse files
committed
Stuck macOS CI
1 parent 3da0b12 commit 5866438

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ jobs:
4848
pip install -e .
4949
pip install -r requirements.d/dev.txt
5050
51-
- name: Setup tmate session
52-
uses: mxschmitt/action-tmate@v1
51+
# - name: Setup tmate session
52+
# uses: mxschmitt/action-tmate@v1
5353

5454
- name: Test with pytest (Linux)
5555
if: runner.os == 'Linux'

src/vorta/application.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ def quit_app_action(self):
105105
del self.main_window
106106
self.scheduler.shutdown()
107107
self.backup_cancelled_event.emit()
108+
while BorgThread.is_running():
109+
print("Waiting for BorgThread to quit.")
110+
time.sleep(2)
108111
cleanup_db()
109112

110113
def create_backup_action(self, profile_id=None):

src/vorta/borg/borg_thread.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ def cancel(self):
290290
self.process.terminate()
291291
mutex.unlock()
292292
self.terminate()
293+
self.wait()
293294

294295
def process_result(self, result):
295296
pass

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import pytest
1+
import os
22
import peewee
3+
import pytest
34
import sys
4-
import os
55
from datetime import datetime as dt
66
from unittest.mock import MagicMock
77

0 commit comments

Comments
 (0)