Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C6523E16A0 for ; Mon, 8 Jun 2026 18:33:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780943624; cv=none; b=kfXG81rWKbUGbkI1mppKm1vB+GsuNLdIVJKGWK4Yl9CogZMuLee2YcT9w8Zht0aANZH5hMjU3N8Oz+ECn7QHcBA+XUJpAO5osGcKOHqphxFdSiFhGVzq4DoBfOGuVLNY8FujxfodyVOk8gJUnQjaalNPzYB7H76xpt09ZISKLRk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780943624; c=relaxed/simple; bh=aaWhdqnEf8wXw4E6IPbFHHIs0l+OCGuuoF0Dj2brSyc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tp12DJWTWQbPfbVWOi3jmClsZAv80zp13AwQyWhQB+QEePRmiCh/z5OoqlGIJLbmGs4/DFo5MOgHO2HEc+tj+puGB4ao8eHuxScJaNMwbTQnWQwPi9sOJv9LZkB04IF8iVUzR53mentOhfwRivrRWzekfjTyTHrHjlIJvsrlSbQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=XIKS4CW0; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="XIKS4CW0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1780943622; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rp2ITbUNsCVav/i/s6CTAu0a6p7cF19evgZDpb+OmeA=; b=XIKS4CW0vXCfBjoCIXImKwWtOSO971HKG+ORYyc6nTpIsFxDMZCOcGtC8U1nl5YTUl52K3 eIuynPNAuDCiRGQAYQn3A/WgyMHWE05Aetkaz3Ok4VXgkiIrm3BfY/kh2KlEhuzp5B1YD7 YDbkAG0Ac162X2YIODVbs+lNPt2wE+Y= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-128-t2IIw75DNtm1k6Bs4vM7Hg-1; Mon, 08 Jun 2026 14:33:37 -0400 X-MC-Unique: t2IIw75DNtm1k6Bs4vM7Hg-1 X-Mimecast-MFC-AGG-ID: t2IIw75DNtm1k6Bs4vM7Hg_1780943617 Received: from mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.95]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id F21D8195DE62; Mon, 8 Jun 2026 18:33:36 +0000 (UTC) Received: from wcosta-defaultstring.rmtbr.csb (unknown [10.22.88.160]) by mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id A5C2636929; Mon, 8 Jun 2026 18:33:34 +0000 (UTC) From: Wander Lairson Costa To: Clark Williams , John Kacur , linux-rt-users@vger.kernel.org Cc: Juri Lelli , luffyluo@tencent.com, davidlt@rivosinc.com, Wander Lairson Costa Subject: [PATCH stalld 30/52] tests: Remove redundant sleeps after start_stalld Date: Mon, 8 Jun 2026 15:31:40 -0300 Message-ID: <20260608183206.140526-31-wander@redhat.com> In-Reply-To: <20260608183206.140526-1-wander@redhat.com> References: <20260608183206.140526-1-wander@redhat.com> Precedence: bulk X-Mailing-List: linux-rt-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.6 on 10.30.177.95 Remove redundant sleep commands from test_foreground.sh and test_logging_destinations.sh. The start_stalld function already polls for readiness before returning, rendering these post-return delays unnecessary. Signed-off-by: Wander Lairson Costa --- tests/functional/test_foreground.sh | 3 --- tests/functional/test_logging_destinations.sh | 1 - 2 files changed, 4 deletions(-) diff --git a/tests/functional/test_foreground.sh b/tests/functional/test_foreground.sh index 792aee0..7dab793 100755 --- a/tests/functional/test_foreground.sh +++ b/tests/functional/test_foreground.sh @@ -24,7 +24,6 @@ require_root # Test 1: Without -f flag, stalld should daemonize test_section "Test 1: stalld daemonizes by default" start_stalld -l -t 5 -sleep 2 assert_process_running "${STALLD_PID}" "stalld should be running" @@ -42,7 +41,6 @@ test_section "Test 2: stalld stays in foreground with -f" # Start stalld in foreground but in background job start_stalld -f -l -t 5 -sleep 2 assert_process_running "${STALLD_PID}" "stalld should be running with -f" @@ -55,7 +53,6 @@ stop_stalld test_section "Test 3: -v implies foreground mode" start_stalld -v -l -t 5 -sleep 2 assert_process_running "${STALLD_PID}" "stalld should be running with -v" diff --git a/tests/functional/test_logging_destinations.sh b/tests/functional/test_logging_destinations.sh index a25e571..eb06171 100755 --- a/tests/functional/test_logging_destinations.sh +++ b/tests/functional/test_logging_destinations.sh @@ -49,7 +49,6 @@ if command -v dmesg >/dev/null 2>&1; then DMESG_BEFORE=$(dmesg | wc -l) start_stalld -f -k -l -t 5 - sleep 2 if assert_process_running "${STALLD_PID}" "stalld with -k should be running"; then sleep 1 -- 2.54.0