From a329bb6bfe530f8ac2045716f8b0c5bc1382b85d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 29 Jan 2024 05:31:35 +0100 Subject: [PATCH] tests: on whonix, just wait for the Tor bootstrap not full systemcheck run (which includes also check for updates, time sync etc). This should drastically speedup tests running on whonix. --- qubes/tests/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qubes/tests/__init__.py b/qubes/tests/__init__.py index 9df1583ac..24c7e12e5 100644 --- a/qubes/tests/__init__.py +++ b/qubes/tests/__init__.py @@ -868,7 +868,11 @@ async def whonix_gw_setup_async(self, vm): except subprocess.CalledProcessError: pass await vm.run_for_stdio( - 'systemcheck --cli') + 'timeout=120; while ! tor-circuit-established-check; do' + ' sleep 1;' + ' timeout=$(( timeout - 1 ));' + ' [ $timeout -gt 0 ] || exit 1; ' + 'done') def _find_pool(self, volume_group, thin_pool):