Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2F635C19F28 for ; Sat, 30 Jul 2022 21:55:59 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 90D5E844EB; Sat, 30 Jul 2022 23:53:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="e+ya1SpL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1D55B84479; Sat, 30 Jul 2022 23:53:35 +0200 (CEST) Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 09C79843F4 for ; Sat, 30 Jul 2022 23:53:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-ot1-x32e.google.com with SMTP id br15-20020a056830390f00b0061c9d73b8bdso5658754otb.6 for ; Sat, 30 Jul 2022 14:53:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=+gtsUvU08lcel98gFEKWXXXfnOiwXaqj+r7ofxtOlUM=; b=e+ya1SpL4P38NpHzUFpd8nSt7OA4+e8n5SwXRSx09xHP6l3SCGhrMwroa0C0UKQnpQ tabc08t+r8mcwHN3XSA0j8wUhb9AWW2xSNWShCgqCMiGaHUMYhzHodnmtGLkhWTTXiPV 25Gdpra3lhugPd1GQo2x5qt4gaWM/MScnMoSc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=+gtsUvU08lcel98gFEKWXXXfnOiwXaqj+r7ofxtOlUM=; b=hEwklZSeqrvicmSALww0HK0AT029ENkfi5sB1yXpIpaB6tgkP7U9C7GGZoAayxluT5 PAw9L1fM7GVxFWDC1hgLfmJDDHmq/yzWHfW2sP0p2qOpKjUg+OiGrjB/E1lMAsHOn0FF cGf3GIKMN/ek5mlNTDUnXp4bq6nwEjg4DV887UsvQM9AHBieSPm4164mHfq0XvDmfWON x1zsRgwjNRW6BIOf7/Gp6ugj/Wwf5NOgYTu+1GH1sTtdA48/DkH0u28Ga6yuUOs60UNU Hbdgbpk3wVdkZZpVMepqqX0M+gqGLMQiMKDJWJlGe9XCkpxv/acJ8bkaSgqmrR3JJTeY o5xw== X-Gm-Message-State: AJIora/am177qvex2zKL4iqs80gDB1OcABw+7GTsavC8etyGF58oKxdZ PnTcaIac8T0aXYS4ecLBo8GydhnknvlKz24s X-Google-Smtp-Source: AGRyM1uedbtfDOvc1qDXd8w7LmPsOZvwhGmK4SwJpCMDlZZFQFVH8TyTpgJF05NiG7YLXt3USb409Q== X-Received: by 2002:a05:6830:140f:b0:61c:df39:3be3 with SMTP id v15-20020a056830140f00b0061cdf393be3mr3613790otp.285.1659218010475; Sat, 30 Jul 2022 14:53:30 -0700 (PDT) Received: from sjg1.lan (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id 19-20020a544193000000b0032f75714af1sm1699656oiy.18.2022.07.30.14.53.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Jul 2022 14:53:29 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Bin Meng , Simon Glass , Marek Vasut , Pavel Herrmann Subject: [PATCH v2 24/35] dm: core: Call dm_scan_other() when setting up for tests Date: Sat, 30 Jul 2022 15:52:26 -0600 Message-Id: <20220730215237.818368-20-sjg@chromium.org> X-Mailer: git-send-email 2.37.1.455.g008518b4e5-goog In-Reply-To: <20220730215237.818368-1-sjg@chromium.org> References: <20220730215237.818368-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean At present this function is not called, so tests miss out on any devices created by it. Add it in so that tests can rely on these extra devices. Signed-off-by: Simon Glass --- (no changes since v1) test/test-main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test-main.c b/test/test-main.c index c0d0378c5d8..31837e57a8f 100644 --- a/test/test-main.c +++ b/test/test-main.c @@ -228,8 +228,10 @@ static int test_pre_run(struct unit_test_state *uts, struct unit_test *test) uts->start = mallinfo(); - if (test->flags & UT_TESTF_SCAN_PDATA) + if (test->flags & UT_TESTF_SCAN_PDATA) { ut_assertok(dm_scan_plat(false)); + ut_assertok(dm_scan_other(false)); + } if (test->flags & UT_TESTF_PROBE_TEST) ut_assertok(do_autoprobe(uts)); -- 2.37.1.455.g008518b4e5-goog