Skip to content

Commit

Permalink
tests: on whonix, just wait for the Tor bootstrap
Browse files Browse the repository at this point in the history
not full systemcheck run (which includes also check for updates, time
sync etc). This should drastically speedup tests running on whonix.
  • Loading branch information
marmarek committed Jan 29, 2024
1 parent c387af4 commit a329bb6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qubes/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a329bb6

Please sign in to comment.