Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8467717rwd; Tue, 20 Jun 2023 15:55:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5BSNiJpqFeHHw2U96giuLU5S7S13EgVGbR+/dx8M9g2xXp5YoBOEzhLQHdGOJBzbas0JxP X-Received: by 2002:a05:6808:1a08:b0:39a:bd3b:9cb3 with SMTP id bk8-20020a0568081a0800b0039abd3b9cb3mr18520776oib.23.1687301759212; Tue, 20 Jun 2023 15:55:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687301759; cv=none; d=google.com; s=arc-20160816; b=fPPVUJ+c6NlVx+ZldybZRYGyJI84spObQ+aJr3qjFp/RZ5bfLBfGxzhPmW2N8WG+fw Evpr+yCXS/ab2fjWVRtNgJqP9UcegoWGoDimmjmPW2Jy1uXV2/N6ttjyvtg1hBXUKSiu kMcWD7w/xMmFR9NBYh+BcxIjqmYl9YAm3e5rmJHVWgPRUgad1v5I4iPsQdqplezKtCR2 0pUTlcZCpZ5El4GCguEkEZvX0oKfyW7j09ZHQ26uubvrD2SJqNIGHvTL+wUQ1+optYEU bJQh44asbdyb47xGagE9+wqC0XDyxGr5VjQOhJf1aVEY0kkiEN8cpQxNZ3Ah8ZPYGjvd +OLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CFeEi5MMtNdHPgqXEgPwbTcu0CZPhdAd29Mw1QaAxVs=; b=AgW4fz0B7tlBUAXk05DAWaMuu/QrY9NGiWx2JUqCH9dmV6PehwXHJlnorY8z0jMy9V xi8i8n/F3PMwvxG/Edi+O4MwtFVCEftB7e4PZ/jv8B+RuC4NC1iLSwif/yu3Pny22q+I +pEJNySaDYiosY95XkbuqH9aSxyoig9lwoDucKHAam879ebVP1uj8xS6qM/oJE/MugVj MwKZ5W6L/DDZcJQzG/RFyK4Tm2nxuh56MSi7gBTGajk+ZEMs4jUGO+n1s5PR/b4z7E7q HYuyEDs19iR2NYYNVhO2A/+NmQhyW7WUpXJ+SVhGZUJFjn3vei1bqPfdVlMihsA7DQDP XCgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="keBZDB/q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ls6-20020a17090b350600b0023a177c4951si3390865pjb.39.2023.06.20.15.55.47; Tue, 20 Jun 2023 15:55:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="keBZDB/q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230032AbjFTWJA (ORCPT + 99 others); Tue, 20 Jun 2023 18:09:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbjFTWIy (ORCPT ); Tue, 20 Jun 2023 18:08:54 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 234311729; Tue, 20 Jun 2023 15:08:53 -0700 (PDT) Received: from notapiano.myfiosgateway.com (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 274586606F8A; Tue, 20 Jun 2023 23:08:50 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1687298932; bh=g1Ge7OS0fr37jsbP/Xrz0cMOpZ9QFiuqkEuRXr45wpk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=keBZDB/qPPd4GgrMzo8SeAUd+1s5SQOLo/TyAovssps9kWDPo9TVSne5g5X/uY1QK wWAPE4tW9UVGnYJCPu/Fb9LATyCXwIqhAZ+gFUza0WZ5TnmP1RoNiFesbl8iZ3+4Q7 sLRk7KPxDV4hhxPMcyXxHzUFM6z6HHc/vNx05dEMvUh1PjWuK3tqillU2CLebZ4xIK 2gDQMMERY8VDHZEnVg8RlHEbytH5hbGoLltCuIzD4sIjfFDw8XC+6mDFB5/YC3sIon UNplbzV0veEY/S+bytao02xVIS7gQyV8JATXT90lfovZn9mMWx2ev1JSB2zYxopbQ9 Ooi4YfeZYPl8A== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Mark Brown Cc: kernel@collabora.com, AngeloGioacchino Del Regno , =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , Jaroslav Kysela , Shuah Khan , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH 2/2] kselftest/alsa: pcm-test: Decrease stream duration from 4 to 2 seconds Date: Tue, 20 Jun 2023 18:08:26 -0400 Message-ID: <20230620220839.2215057-3-nfraprado@collabora.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230620220839.2215057-1-nfraprado@collabora.com> References: <20230620220839.2215057-1-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently test_pcm_time() streams audio on each PCM with each configuration for 4 seconds. This time can add up, and with the current 45 second kselftest timeout, some machines like mt8192-asurada-spherion can't even run to completion. Lower the duration to 2 seconds to cut the test duration in half, without reducing the test coverage. Signed-off-by: NĂ­colas F. R. A. Prado --- tools/testing/selftests/alsa/pcm-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/alsa/pcm-test.c b/tools/testing/selftests/alsa/pcm-test.c index a2b6db33b513..de42fc7e9b53 100644 --- a/tools/testing/selftests/alsa/pcm-test.c +++ b/tools/testing/selftests/alsa/pcm-test.c @@ -258,7 +258,7 @@ static void test_pcm_time(struct pcm_data *data, enum test_class class, const char *test_name, snd_config_t *pcm_cfg) { char name[64], key[128], msg[256]; - const int duration_s = 4, margin_ms = 100; + const int duration_s = 2, margin_ms = 100; const int duration_ms = duration_s * 1000; const char *cs; int i, err; -- 2.41.0