From 711720bb8cecb99a10742e1e4fceaa379b06bb2e Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Thu, 19 Jun 2025 20:05:43 -0400 Subject: [PATCH] Fix OnionShare URL detection in e2e tests --- ci/test-e2e.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/test-e2e.sh b/ci/test-e2e.sh index c86100f..f6200e8 100755 --- a/ci/test-e2e.sh +++ b/ci/test-e2e.sh @@ -30,14 +30,14 @@ if [ "${VOXVERA_E2E_OFFLINE:-}" != "1" ]; then sleep 10 # Start OnionShare - onionshare-cli --website --public --persistent dist/demosite/.onionshare-session dist/demosite >"$LOG_DIR/onionshare.log" 2>&1 & + onionshare-cli --website --public --persistent dist/demosite >"$LOG_DIR/onionshare.log" 2>&1 & OS_PID=$! # Wait for URL URL="" i=0 -while [ $i -lt 30 ]; do - if grep -Eo 'https?://[a-zA-Z0-9]{16,56}\.onion' "$LOG_DIR/onionshare.log" | head -n1 >"$LOG_DIR/url.txt"; then +while [ $i -lt 90 ]; do + if grep -Eo 'http[^ ]+\.onion' "$LOG_DIR/onionshare.log" | head -n1 >"$LOG_DIR/url.txt"; then URL=$(cat "$LOG_DIR/url.txt") [ -n "$URL" ] && break fi