From patchwork Tue Sep 25 14:40:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 147482 Delivered-To: patches@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp812806lji; Tue, 25 Sep 2018 07:40:55 -0700 (PDT) X-Received: by 2002:a2e:2b08:: with SMTP id q8-v6mr1145727lje.128.1537886455309; Tue, 25 Sep 2018 07:40:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537886455; cv=none; d=google.com; s=arc-20160816; b=yWiEA3oSN0A68tR0QvuRzg8AuP/MLcFIeEYrUK2xFJ64gEy8QCDV34vRLMKrRs53mR 2oUPYXnaZvjj4J6aZy/gvfdN1SkUy+Kpvd5Cj/RjJ+yYPbaxfWrKuxY3a+VbxOwcnukn LeGw67UuVntuOJDgUoBH9EnIvvFOPa1js0QwW99o1JRLzBBIBh5jkMyXFsw2dUhH3LIA pysAaKtupHkx5PWET8wWaKoIZyqm3yS4PEKDd3Umt6PGDMjzrD+y+Qs27s6zjiwXQHqk EbjlxbDqH8voxefF9pitI7e3xJgfrrs/wyJj7IexuJMjym7Atw52qakQSpUuCXXytaap N/Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=usd+VQI9QI6u8SdTUaVRMq3RnCkAgMQ2gaGqh6XdKl8=; b=enuPNR/CjPdmabgTWX/fjHn1efP7pnUv4LWApLjEi/rfqByYYerQA0y0HKAOvAYC89 DrObB6AbwBBo4IAmzJu9xeAYxktSVfmAzh2WSoUL75QBekYQn81LNmE5NaCxLcMfao/Q U3fHYxCbre/rCqH6EvWad2k1jMhuzLC8k0kEhm/pFB+Luiy/3pnbIUHp4isPbw1GIB72 EGz87O4gg1qr4qtn0tDuB0mp59n0aosK5y3bMzquQy1eb8GNVJGqTc1EHt/kELY5PCe/ 6v7v6Q1JMGViXmHB6B6GvvfyHhvsYS48vgyeju4XWTVoYfcewAXTh5QIDD7YzzS4X/G/ HVKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AT8gMeeX; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id l25-v6sor1629036ljg.4.2018.09.25.07.40.55 for (Google Transport Security); Tue, 25 Sep 2018 07:40:55 -0700 (PDT) Received-SPF: pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AT8gMeeX; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=usd+VQI9QI6u8SdTUaVRMq3RnCkAgMQ2gaGqh6XdKl8=; b=AT8gMeeX5k/fQCA8OlS6NAp6aFPToaz7hvTyrW2w8lIk04bb49L1T7YCrau7/RjIXU H+oLIuECcaaz1iF/E72GSbHL9CHoGc7q/eYjDRILb0Sw4woWS3/7nwZ+Fs+qB2AvM4yV rd2VyLLw/JDmIo5HGFJDotRxShCwKJ0zROIfM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=usd+VQI9QI6u8SdTUaVRMq3RnCkAgMQ2gaGqh6XdKl8=; b=Q7C0YgAZS4ngn12Mjnr4mOEEZiTkddWA/BTDGC1qhLmp3xyOMhrxux5aaebCZsxUK4 hnDAhD4U5e3aJ9T+uDGKAIMFyw/hAAwEfPDlMrBAy20iQZZ5C09yi1/OP1oOwARN1wcH UDqwxHuwa6UmLaiMfhtq8zeQdPMVj9euDc+pwiN4qRlhP1drMu3anXQnyhF9x4peILsm c6j55pXUoNnKqwkCQSU2odV7UW2z/bOWKT7tyw/zWPsewq2n19Kqw+/rEREHzmzSXJJu Ont7JlCnv+YHAmuftRyLGu7YxG3r9DGFQoiYiRYUTiewaWriIogfqRACNVdaSuID28wk mE9g== X-Gm-Message-State: ABuFfogWXrCpHZtnYNUvEJXsgfdcvdP8EqeY/FuHnYIVtg+By3ApN5qq 63IrRp8ZopIsDS8+8KGOOccegilx X-Google-Smtp-Source: ACcGV62mQdHow83ltH8GCJuw2bMSQ2HsMXcj4/7Kchlm08LYqQ7JVhM2gKvWtf8+887If8stQ/OFjw== X-Received: by 2002:a2e:99c1:: with SMTP id l1-v6mr1127366ljj.132.1537886455070; Tue, 25 Sep 2018 07:40:55 -0700 (PDT) Return-Path: Received: from jax.urgonet (h-84-105.A175.priv.bahnhof.se. [79.136.84.105]) by smtp.gmail.com with ESMTPSA id g14-v6sm14483lja.96.2018.09.25.07.40.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Sep 2018 07:40:54 -0700 (PDT) From: Jens Wiklander To: u-boot@lists.denx.de Cc: Simon Glass , Igor Opaniuk , Tom Rini , Jaehoon Chung , Pierre Aubert , Albert Aribaud , Peter Griffin , Michal Simek , Jens Wiklander Subject: [PATCH v4 17/19] test_avb: Update pymark.buildconfigspec information for the AVB tests Date: Tue, 25 Sep 2018 16:40:21 +0200 Message-Id: <20180925144023.24555-18-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180925144023.24555-1-jens.wiklander@linaro.org> References: <20180925144023.24555-1-jens.wiklander@linaro.org> Update the pymark.buildconfigspec to depend on 'cmd_mmc' in addition to 'cmd_avb' for those tests that needs more a more complete MMC implementation or the "mmc" command. Reviewed-by: Simon Glass Signed-off-by: Jens Wiklander --- test/py/tests/test_avb.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/test/py/tests/test_avb.py b/test/py/tests/test_avb.py index 7996e4845db3..9683fd80d074 100644 --- a/test/py/tests/test_avb.py +++ b/test/py/tests/test_avb.py @@ -23,7 +23,7 @@ mmc_dev = 1 temp_addr = 0x90000000 temp_addr2 = 0x90002000 -@pytest.mark.buildconfigspec('cmd_avb') +@pytest.mark.buildconfigspec('cmd_avb', 'cmd_mmc') def test_avb_verify(u_boot_console): """Run AVB 2.0 boot verification chain with avb subset of commands """ @@ -36,7 +36,7 @@ def test_avb_verify(u_boot_console): assert response.find(success_str) -@pytest.mark.buildconfigspec('cmd_avb') +@pytest.mark.buildconfigspec('cmd_avb', 'cmd_mmc') def test_avb_mmc_uuid(u_boot_console): """Check if 'avb get_uuid' works, compare results with 'part list mmc 1' output @@ -78,6 +78,7 @@ def test_avb_read_rb(u_boot_console): assert response == '' response = u_boot_console.run_command('avb read_rb 1') + assert response == 'Rollback index: 0' @pytest.mark.buildconfigspec('cmd_avb') @@ -89,9 +90,10 @@ def test_avb_is_unlocked(u_boot_console): assert response == '' response = u_boot_console.run_command('avb is_unlocked') + assert response == 'Unlocked = 1' -@pytest.mark.buildconfigspec('cmd_avb') +@pytest.mark.buildconfigspec('cmd_avb', 'cmd_mmc') def test_avb_mmc_read(u_boot_console): """Test mmc read operation """