From patchwork Mon Sep 3 14:47:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 145815 Delivered-To: patches@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2575803ljw; Mon, 3 Sep 2018 07:47:45 -0700 (PDT) X-Received: by 2002:a19:518a:: with SMTP id g10-v6mr19071833lfl.136.1535986065903; Mon, 03 Sep 2018 07:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535986065; cv=none; d=google.com; s=arc-20160816; b=HphnLo8SOMdAks9DHd1Lo6f/qqbudinBk7mekD9od4ALJcCB6xnZ/b7nKJvwKn6WOi vS0aJKsoFOb4LdvIgCD0BL5uVIgPGYgVNk7jJMlRcv56Gr5A61sUCOsRp+ddiKRtKCJP A6ayaflQSiwIKdrDT7ZgcilKfiwgqR8g/bTmNEBeGScdswvPshWgJkwvxJ5a4O9L03EX eeuE3YVkfPAhk4bzWj3Kr4Gsi4a0zvfElHgCd1zAkJXyqUfd9webYoLLKIbIA+Af2cJj i9lpagb/tF/LIN0T02wp7IcsHWMBbuo8wYHVfjaKSrNKfjfbisouCSPPI1gMYztR90aU K5hQ== 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:arc-authentication-results; bh=03hhEu2LryTx21ANDAijIfGtWXxx5DEz2AuJb6OPMvg=; b=mIW340/2VBatRmWEt1WfAu7tPnCRqA7PQKFyRCw4AyURZXEx7syL9OC9oq28G0g2/y kQyOmOzCXuj9gxyiScIdf1oHqyo98R79zU9FRVYD2MTz0heytfMiR3HeYsOgFO/qUf7c JeTYb97iIV89lmRCzdQwmd82h+nWOUfQAnCq9wp+VA0gQomi16U8IKpPV0/mcnM04X1V JL54fcRcCzKemMeIyhtRyGIAV9QYiBbbrjiFwbZ2QyenU+UtNolN4P2GQQKBDITKelDa WTOTR4DTtctu+0r++sGq+1xBdf7b7wcUuiMDIQ46IOzwbaFYh3/ptAB4zzNSUQ8qt+82 Q83w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ds1QY3VH; 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 g95-v6sor7936231ljg.32.2018.09.03.07.47.45 for (Google Transport Security); Mon, 03 Sep 2018 07:47:45 -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=ds1QY3VH; 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=03hhEu2LryTx21ANDAijIfGtWXxx5DEz2AuJb6OPMvg=; b=ds1QY3VHJ/l0m5f04sw36fhi9C/ZoMcOxqCefb0F+jwRx/bTDyqcyt1Xq/D34OXEtO hiPw3n0R1WrYYjoWk7YCSqg0U45HK/tcJ555A5wsmukEAp2Vda5wi5IDGfCoBJaEgvmi nlBE4XIDgzWnI38brXDywj6Bvxl6sokY4RXPM= 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=03hhEu2LryTx21ANDAijIfGtWXxx5DEz2AuJb6OPMvg=; b=fRpH72c3EWcPqY2ry5Ow2S/w6bVwCimT5dHNJ0z3lb0TPsbRoZ8hlyZ5RCYs4KHMA4 YC9kdqNJF3yTmOP7Zm2JpG3P8wJuf1//lUIpwPKx0GAbb71je2xBLB3LlsCPVXvnyBqx iaQMdM+PCTcpS3VEBMLNi/1Bdh0wEQMASu9Lm/NT357eB54l8w/aoQUilnAgpJZ326Ee n4SsPSUQYStb5OkVUoCVrWZ13+XnF3dFKBRoHXbDUrR/LLDAtyxPYGOk3YOss4Cq6AK5 yp5TS/1HbKlbX2hAdYlx9bU0YcQECyJrHlKVoOsId2oQ1Fasbu+pr57TPB7dDkWjRpNx AHSQ== X-Gm-Message-State: APzg51Bvqo8RJqZjn1It1duPBRMUL1h/8AzciLwVh4RtsJTyaU8wuAyU 68MY7pI+wfVohYHugejV+B63nGLB X-Google-Smtp-Source: ANB0VdbtY1oHs/omqU6ZX+BM+PaFUaa882d+HNBJ9I2pQ4N5B0Ov4gpJ2SXQ3lr70Y2OHEwSbezSQQ== X-Received: by 2002:a2e:8257:: with SMTP id j23-v6mr17292818ljh.49.1535986065709; Mon, 03 Sep 2018 07:47:45 -0700 (PDT) Return-Path: Received: from jax.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id w18-v6sm3343431ljd.73.2018.09.03.07.47.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Sep 2018 07:47:44 -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 v3 18/20] test_avb: Update pymark.buildconfigspec information for the AVB tests Date: Mon, 3 Sep 2018 16:47:09 +0200 Message-Id: <20180903144711.31585-19-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180903144711.31585-1-jens.wiklander@linaro.org> References: <20180903144711.31585-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. Signed-off-by: Jens Wiklander --- test/py/tests/test_avb.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) -- 2.17.1 Reviewed-by: Simon Glass 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 """