* [U-Boot] [PATCH] test/py: vboot can be run only at Sandbox
@ 2016-07-18 6:49 Michal Simek
2016-07-20 14:19 ` Simon Glass
2016-07-23 0:13 ` [U-Boot] " Tom Rini
0 siblings, 2 replies; 9+ messages in thread
From: Michal Simek @ 2016-07-18 6:49 UTC (permalink / raw)
To: u-boot
Getting this error:
Zynq> sb load hostfs - 100
/home/monstr/data/disk/u-boot/build-zynq_zc706/test.fit
Unknown command 'sb' - try 'help'
because sb command is present only for Sandbox
obj-$(CONFIG_SANDBOX) += host.o
that's why mark this test to be run only at Sandbox
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---
test/py/tests/test_vboot.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/py/tests/test_vboot.py b/test/py/tests/test_vboot.py
index c77989591c7e..92b4eccad808 100644
--- a/test/py/tests/test_vboot.py
+++ b/test/py/tests/test_vboot.py
@@ -29,6 +29,7 @@ import pytest
import sys
import u_boot_utils as util
+ at pytest.mark.boardspec('sandbox')
@pytest.mark.buildconfigspec('fit_signature')
def test_vboot(u_boot_console):
"""Test verified boot signing with mkimage and verification with 'bootm'.
--
1.9.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH] test/py: vboot can be run only at Sandbox
2016-07-18 6:49 [U-Boot] [PATCH] test/py: vboot can be run only at Sandbox Michal Simek
@ 2016-07-20 14:19 ` Simon Glass
2016-07-20 14:21 ` Michal Simek
2016-07-20 15:51 ` Stephen Warren
2016-07-23 0:13 ` [U-Boot] " Tom Rini
1 sibling, 2 replies; 9+ messages in thread
From: Simon Glass @ 2016-07-20 14:19 UTC (permalink / raw)
To: u-boot
+Stephen
On 18 July 2016 at 00:49, Michal Simek <michal.simek@xilinx.com> wrote:
> Getting this error:
> Zynq> sb load hostfs - 100
> /home/monstr/data/disk/u-boot/build-zynq_zc706/test.fit
> Unknown command 'sb' - try 'help'
>
> because sb command is present only for Sandbox
> obj-$(CONFIG_SANDBOX) += host.o
>
> that's why mark this test to be run only at Sandbox
>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
> test/py/tests/test_vboot.py | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/test/py/tests/test_vboot.py b/test/py/tests/test_vboot.py
> index c77989591c7e..92b4eccad808 100644
> --- a/test/py/tests/test_vboot.py
> +++ b/test/py/tests/test_vboot.py
> @@ -29,6 +29,7 @@ import pytest
> import sys
> import u_boot_utils as util
>
> + at pytest.mark.boardspec('sandbox')
> @pytest.mark.buildconfigspec('fit_signature')
Can we have both conditions, or does it only work as an OR?
> def test_vboot(u_boot_console):
> """Test verified boot signing with mkimage and verification with 'bootm'.
> --
> 1.9.1
>
Regards,
Simon
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH] test/py: vboot can be run only at Sandbox
2016-07-20 14:19 ` Simon Glass
@ 2016-07-20 14:21 ` Michal Simek
2016-07-20 15:51 ` Stephen Warren
1 sibling, 0 replies; 9+ messages in thread
From: Michal Simek @ 2016-07-20 14:21 UTC (permalink / raw)
To: u-boot
On 20.7.2016 16:19, Simon Glass wrote:
> +Stephen
>
> On 18 July 2016 at 00:49, Michal Simek <michal.simek@xilinx.com> wrote:
>> Getting this error:
>> Zynq> sb load hostfs - 100
>> /home/monstr/data/disk/u-boot/build-zynq_zc706/test.fit
>> Unknown command 'sb' - try 'help'
>>
>> because sb command is present only for Sandbox
>> obj-$(CONFIG_SANDBOX) += host.o
>>
>> that's why mark this test to be run only at Sandbox
>>
>> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
>> ---
>>
>> test/py/tests/test_vboot.py | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/test/py/tests/test_vboot.py b/test/py/tests/test_vboot.py
>> index c77989591c7e..92b4eccad808 100644
>> --- a/test/py/tests/test_vboot.py
>> +++ b/test/py/tests/test_vboot.py
>> @@ -29,6 +29,7 @@ import pytest
>> import sys
>> import u_boot_utils as util
>>
>> + at pytest.mark.boardspec('sandbox')
>> @pytest.mark.buildconfigspec('fit_signature')
>
> Can we have both conditions, or does it only work as an OR?
Test is valid when both options are valid.
Stephen can confirm for sure.
Thanks,
Michal
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH] test/py: vboot can be run only at Sandbox
2016-07-20 14:19 ` Simon Glass
2016-07-20 14:21 ` Michal Simek
@ 2016-07-20 15:51 ` Stephen Warren
2016-07-22 7:13 ` Michal Simek
1 sibling, 1 reply; 9+ messages in thread
From: Stephen Warren @ 2016-07-20 15:51 UTC (permalink / raw)
To: u-boot
On 07/20/2016 08:19 AM, Simon Glass wrote:
> +Stephen
>
> On 18 July 2016 at 00:49, Michal Simek <michal.simek@xilinx.com> wrote:
>> Getting this error:
>> Zynq> sb load hostfs - 100
>> /home/monstr/data/disk/u-boot/build-zynq_zc706/test.fit
>> Unknown command 'sb' - try 'help'
>>
>> because sb command is present only for Sandbox
>> obj-$(CONFIG_SANDBOX) += host.o
>>
>> that's why mark this test to be run only at Sandbox
>>
>> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
>> ---
>>
>> test/py/tests/test_vboot.py | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/test/py/tests/test_vboot.py b/test/py/tests/test_vboot.py
>> index c77989591c7e..92b4eccad808 100644
>> --- a/test/py/tests/test_vboot.py
>> +++ b/test/py/tests/test_vboot.py
>> @@ -29,6 +29,7 @@ import pytest
>> import sys
>> import u_boot_utils as util
>>
>> + at pytest.mark.boardspec('sandbox')
>> @pytest.mark.buildconfigspec('fit_signature')
>
> Can we have both conditions, or does it only work as an OR?
I believe marks are conditions that must be individually satisfied, so
when there are multiple marks, it's treated like an AND, which I imagine
is the desired thing here.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH] test/py: vboot can be run only at Sandbox
2016-07-20 15:51 ` Stephen Warren
@ 2016-07-22 7:13 ` Michal Simek
2016-07-22 13:33 ` Simon Glass
0 siblings, 1 reply; 9+ messages in thread
From: Michal Simek @ 2016-07-22 7:13 UTC (permalink / raw)
To: u-boot
Hi Simon and Stephen,
On 20.7.2016 17:51, Stephen Warren wrote:
> On 07/20/2016 08:19 AM, Simon Glass wrote:
>> +Stephen
>>
>> On 18 July 2016 at 00:49, Michal Simek <michal.simek@xilinx.com> wrote:
>>> Getting this error:
>>> Zynq> sb load hostfs - 100
>>> /home/monstr/data/disk/u-boot/build-zynq_zc706/test.fit
>>> Unknown command 'sb' - try 'help'
>>>
>>> because sb command is present only for Sandbox
>>> obj-$(CONFIG_SANDBOX) += host.o
>>>
>>> that's why mark this test to be run only at Sandbox
>>>
>>> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
>>> ---
>>>
>>> test/py/tests/test_vboot.py | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> diff --git a/test/py/tests/test_vboot.py b/test/py/tests/test_vboot.py
>>> index c77989591c7e..92b4eccad808 100644
>>> --- a/test/py/tests/test_vboot.py
>>> +++ b/test/py/tests/test_vboot.py
>>> @@ -29,6 +29,7 @@ import pytest
>>> import sys
>>> import u_boot_utils as util
>>>
>>> + at pytest.mark.boardspec('sandbox')
>>> @pytest.mark.buildconfigspec('fit_signature')
>>
>> Can we have both conditions, or does it only work as an OR?
>
> I believe marks are conditions that must be individually satisfied, so
> when there are multiple marks, it's treated like an AND, which I imagine
> is the desired thing here.
>
ACK then?
Thanks,
Michal
--
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP SoCs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160722/67e56772/attachment.sig>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH] test/py: vboot can be run only at Sandbox
2016-07-22 7:13 ` Michal Simek
@ 2016-07-22 13:33 ` Simon Glass
2016-07-22 14:02 ` Michal Simek
0 siblings, 1 reply; 9+ messages in thread
From: Simon Glass @ 2016-07-22 13:33 UTC (permalink / raw)
To: u-boot
Hi Michal,
On 22 July 2016 at 01:13, Michal Simek <monstr@monstr.eu> wrote:
> Hi Simon and Stephen,
>
> On 20.7.2016 17:51, Stephen Warren wrote:
>> On 07/20/2016 08:19 AM, Simon Glass wrote:
>>> +Stephen
>>>
>>> On 18 July 2016 at 00:49, Michal Simek <michal.simek@xilinx.com> wrote:
>>>> Getting this error:
>>>> Zynq> sb load hostfs - 100
>>>> /home/monstr/data/disk/u-boot/build-zynq_zc706/test.fit
>>>> Unknown command 'sb' - try 'help'
>>>>
>>>> because sb command is present only for Sandbox
>>>> obj-$(CONFIG_SANDBOX) += host.o
>>>>
>>>> that's why mark this test to be run only at Sandbox
>>>>
>>>> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
>>>> ---
>>>>
>>>> test/py/tests/test_vboot.py | 1 +
>>>> 1 file changed, 1 insertion(+)
>>>>
>>>> diff --git a/test/py/tests/test_vboot.py b/test/py/tests/test_vboot.py
>>>> index c77989591c7e..92b4eccad808 100644
>>>> --- a/test/py/tests/test_vboot.py
>>>> +++ b/test/py/tests/test_vboot.py
>>>> @@ -29,6 +29,7 @@ import pytest
>>>> import sys
>>>> import u_boot_utils as util
>>>>
>>>> + at pytest.mark.boardspec('sandbox')
>>>> @pytest.mark.buildconfigspec('fit_signature')
>>>
>>> Can we have both conditions, or does it only work as an OR?
>>
>> I believe marks are conditions that must be individually satisfied, so
>> when there are multiple marks, it's treated like an AND, which I imagine
>> is the desired thing here.
>>
>
> ACK then?
Can you add both conditions?
Regards,
Simon
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH] test/py: vboot can be run only at Sandbox
2016-07-22 13:33 ` Simon Glass
@ 2016-07-22 14:02 ` Michal Simek
2016-07-22 14:14 ` Simon Glass
0 siblings, 1 reply; 9+ messages in thread
From: Michal Simek @ 2016-07-22 14:02 UTC (permalink / raw)
To: u-boot
On 22.7.2016 15:33, Simon Glass wrote:
> Hi Michal,
>
> On 22 July 2016 at 01:13, Michal Simek <monstr@monstr.eu> wrote:
>> Hi Simon and Stephen,
>>
>> On 20.7.2016 17:51, Stephen Warren wrote:
>>> On 07/20/2016 08:19 AM, Simon Glass wrote:
>>>> +Stephen
>>>>
>>>> On 18 July 2016 at 00:49, Michal Simek <michal.simek@xilinx.com> wrote:
>>>>> Getting this error:
>>>>> Zynq> sb load hostfs - 100
>>>>> /home/monstr/data/disk/u-boot/build-zynq_zc706/test.fit
>>>>> Unknown command 'sb' - try 'help'
>>>>>
>>>>> because sb command is present only for Sandbox
>>>>> obj-$(CONFIG_SANDBOX) += host.o
>>>>>
>>>>> that's why mark this test to be run only at Sandbox
>>>>>
>>>>> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
>>>>> ---
>>>>>
>>>>> test/py/tests/test_vboot.py | 1 +
>>>>> 1 file changed, 1 insertion(+)
>>>>>
>>>>> diff --git a/test/py/tests/test_vboot.py b/test/py/tests/test_vboot.py
>>>>> index c77989591c7e..92b4eccad808 100644
>>>>> --- a/test/py/tests/test_vboot.py
>>>>> +++ b/test/py/tests/test_vboot.py
>>>>> @@ -29,6 +29,7 @@ import pytest
>>>>> import sys
>>>>> import u_boot_utils as util
>>>>>
>>>>> + at pytest.mark.boardspec('sandbox')
>>>>> @pytest.mark.buildconfigspec('fit_signature')
>>>>
>>>> Can we have both conditions, or does it only work as an OR?
>>>
>>> I believe marks are conditions that must be individually satisfied, so
>>> when there are multiple marks, it's treated like an AND, which I imagine
>>> is the desired thing here.
>>>
>>
>> ACK then?
>
> Can you add both conditions?
Sorry I don't get it. Origin there is condition that fit_signature needs
to be enabled. And this patch adds one more when sandbox is enabled.
It means vboot test runs on sandbox when fit_signature is enabled.
Thanks,
Michal
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] [PATCH] test/py: vboot can be run only at Sandbox
2016-07-22 14:02 ` Michal Simek
@ 2016-07-22 14:14 ` Simon Glass
0 siblings, 0 replies; 9+ messages in thread
From: Simon Glass @ 2016-07-22 14:14 UTC (permalink / raw)
To: u-boot
On 22 July 2016 at 08:02, Michal Simek <michal.simek@xilinx.com> wrote:
> On 22.7.2016 15:33, Simon Glass wrote:
>> Hi Michal,
>>
>> On 22 July 2016 at 01:13, Michal Simek <monstr@monstr.eu> wrote:
>>> Hi Simon and Stephen,
>>>
>>> On 20.7.2016 17:51, Stephen Warren wrote:
>>>> On 07/20/2016 08:19 AM, Simon Glass wrote:
>>>>> +Stephen
>>>>>
>>>>> On 18 July 2016 at 00:49, Michal Simek <michal.simek@xilinx.com> wrote:
>>>>>> Getting this error:
>>>>>> Zynq> sb load hostfs - 100
>>>>>> /home/monstr/data/disk/u-boot/build-zynq_zc706/test.fit
>>>>>> Unknown command 'sb' - try 'help'
>>>>>>
>>>>>> because sb command is present only for Sandbox
>>>>>> obj-$(CONFIG_SANDBOX) += host.o
>>>>>>
>>>>>> that's why mark this test to be run only at Sandbox
>>>>>>
>>>>>> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
>>>>>> ---
>>>>>>
>>>>>> test/py/tests/test_vboot.py | 1 +
>>>>>> 1 file changed, 1 insertion(+)
>>>>>>
>>>>>> diff --git a/test/py/tests/test_vboot.py b/test/py/tests/test_vboot.py
>>>>>> index c77989591c7e..92b4eccad808 100644
>>>>>> --- a/test/py/tests/test_vboot.py
>>>>>> +++ b/test/py/tests/test_vboot.py
>>>>>> @@ -29,6 +29,7 @@ import pytest
>>>>>> import sys
>>>>>> import u_boot_utils as util
>>>>>>
>>>>>> + at pytest.mark.boardspec('sandbox')
>>>>>> @pytest.mark.buildconfigspec('fit_signature')
>>>>>
>>>>> Can we have both conditions, or does it only work as an OR?
>>>>
>>>> I believe marks are conditions that must be individually satisfied, so
>>>> when there are multiple marks, it's treated like an AND, which I imagine
>>>> is the desired thing here.
>>>>
>>>
>>> ACK then?
>>
>> Can you add both conditions?
>
> Sorry I don't get it. Origin there is condition that fit_signature needs
> to be enabled. And this patch adds one more when sandbox is enabled.
>
> It means vboot test runs on sandbox when fit_signature is enabled.
OK that sounds good, thanks.
Acked-by: Simon Glass <sjg@chromium.org>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot] test/py: vboot can be run only at Sandbox
2016-07-18 6:49 [U-Boot] [PATCH] test/py: vboot can be run only at Sandbox Michal Simek
2016-07-20 14:19 ` Simon Glass
@ 2016-07-23 0:13 ` Tom Rini
1 sibling, 0 replies; 9+ messages in thread
From: Tom Rini @ 2016-07-23 0:13 UTC (permalink / raw)
To: u-boot
On Mon, Jul 18, 2016 at 08:49:08AM +0200, Michal Simek wrote:
> Getting this error:
> Zynq> sb load hostfs - 100
> /home/monstr/data/disk/u-boot/build-zynq_zc706/test.fit
> Unknown command 'sb' - try 'help'
>
> because sb command is present only for Sandbox
> obj-$(CONFIG_SANDBOX) += host.o
>
> that's why mark this test to be run only at Sandbox
>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160722/20e2baec/attachment.sig>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2016-07-23 0:13 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-18 6:49 [U-Boot] [PATCH] test/py: vboot can be run only at Sandbox Michal Simek
2016-07-20 14:19 ` Simon Glass
2016-07-20 14:21 ` Michal Simek
2016-07-20 15:51 ` Stephen Warren
2016-07-22 7:13 ` Michal Simek
2016-07-22 13:33 ` Simon Glass
2016-07-22 14:02 ` Michal Simek
2016-07-22 14:14 ` Simon Glass
2016-07-23 0:13 ` [U-Boot] " Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.