Skip to contentSkip to conversation

test/py: vboot can be run only at Sandbox

PATCH In review Michal Simek 5 participants 9 messages Jul 18, 2016 – Jul 23, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/py: vboot can be run only at Sandbox

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

---

 test/py/tests/test_vboot.py | 1 +
 1 file changed, 1 insertion(+)
test/py/tests/test_vboot.py +1 -0
index c77989591c7e..92b4eccad808 100644
@@ -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'.
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 test/py: vboot can be run only at Sandbox

+Stephen

Quoted 21 lines · Michal Simek

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

---

 test/py/tests/test_vboot.py | 1 +
 1 file changed, 1 insertion(+)
test/py/tests/test_vboot.py +0 -0
index c77989591c7e..92b4eccad808 100644

test/py/tests/test_vboot.py import pytest · line 33

Quoted 5 lines
test/py/tests/test_vboot.py +1 -0
@@ -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?

Quoted 5 lines
test/py/tests/test_vboot.py +0 -1
 def test_vboot(u_boot_console):
     """Test verified boot signing with mkimage and verification with 'bootm'.
--

1.9.1

Regards,
Simon

#2 lore raw

PATCH 1/1 test/py: vboot can be run only at Sandbox

Quoted 27 lines · Simon Glass

+Stephen

Quoted 24 lines · Michal Simek

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

---

 test/py/tests/test_vboot.py | 1 +
 1 file changed, 1 insertion(+)
test/py/tests/test_vboot.py +0 -0
index c77989591c7e..92b4eccad808 100644
@@ -29,6 +29,7 @@ import pytest
 import sys
 import u_boot_utils as util
 
Quoted 4 lines

test/py/tests/test_vboot.py import pytest · line 33

Quoted 2 lines
test/py/tests/test_vboot.py +1 -0
+ 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

#3 lore raw

PATCH 1/1 test/py: vboot can be run only at Sandbox

In reply to Simon Glass
Quoted 27 lines · Simon Glass

+Stephen

Quoted 24 lines · Michal Simek

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

---

  test/py/tests/test_vboot.py | 1 +
  1 file changed, 1 insertion(+)
test/py/tests/test_vboot.py +0 -0
index c77989591c7e..92b4eccad808 100644
@@ -29,6 +29,7 @@ import pytest
  import sys
  import u_boot_utils as util
 
Quoted 4 lines

test/py/tests/test_vboot.py import pytest · line 33

Quoted 2 lines
test/py/tests/test_vboot.py +1 -0
+ 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.

#4 lore raw

PATCH 1/1 test/py: vboot can be run only at Sandbox

Hi Simon and Stephen,

Quoted 28 lines · Stephen Warren
Quoted 27 lines · Simon Glass

+Stephen

Quoted 24 lines · Michal Simek

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

---

  test/py/tests/test_vboot.py | 1 +
  1 file changed, 1 insertion(+)
test/py/tests/test_vboot.py +0 -0
index c77989591c7e..92b4eccad808 100644
@@ -29,6 +29,7 @@ import pytest
  import sys
  import u_boot_utils as util
 
Quoted 9 lines
Quoted 4 lines

test/py/tests/test_vboot.py import pytest · line 33

Quoted 2 lines
test/py/tests/test_vboot.py +1 -0
+ 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

Signature · 14 lines
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>
#5 lore raw

PATCH 1/1 test/py: vboot can be run only at Sandbox

Hi Michal,

Quoted 36 lines · Michal Simek

Hi Simon and Stephen,

Quoted 33 lines · Stephen Warren
Quoted 31 lines · Simon Glass

+Stephen

Quoted 21 lines · Michal Simek

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

---

  test/py/tests/test_vboot.py | 1 +
  1 file changed, 1 insertion(+)
test/py/tests/test_vboot.py +0 -0
index c77989591c7e..92b4eccad808 100644

test/py/tests/test_vboot.py import pytest · line 33

Quoted 5 lines
test/py/tests/test_vboot.py +1 -0
@@ -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?

Quoted 6 lines
Quoted 4 lines

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

#6 lore raw

PATCH 1/1 test/py: vboot can be run only at Sandbox

Quoted 39 lines · Simon Glass

Hi Michal,

Quoted 36 lines · Michal Simek

Hi Simon and Stephen,

Quoted 33 lines · Stephen Warren
Quoted 31 lines · Simon Glass

+Stephen

Quoted 21 lines · Michal Simek

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

---

  test/py/tests/test_vboot.py | 1 +
  1 file changed, 1 insertion(+)
test/py/tests/test_vboot.py +0 -0
index c77989591c7e..92b4eccad808 100644

test/py/tests/test_vboot.py import pytest · line 33

Quoted 5 lines
test/py/tests/test_vboot.py +1 -0
@@ -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?

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

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

#7 lore raw

PATCH 1/1 test/py: vboot can be run only at Sandbox

Quoted 45 lines · Michal Simek
Quoted 44 lines · Simon Glass

Hi Michal,

Quoted 41 lines · Michal Simek

Hi Simon and Stephen,

Quoted 37 lines · Stephen Warren
Quoted 27 lines · Simon Glass

+Stephen

Quoted 24 lines · Michal Simek

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

---

  test/py/tests/test_vboot.py | 1 +
  1 file changed, 1 insertion(+)
test/py/tests/test_vboot.py +0 -0
index c77989591c7e..92b4eccad808 100644
@@ -29,6 +29,7 @@ import pytest
  import sys
  import u_boot_utils as util
 
Quoted 4 lines

test/py/tests/test_vboot.py import pytest · line 33

Quoted 2 lines
test/py/tests/test_vboot.py +1 -0
+ 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.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

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.

#8 lore raw
In reply to Michal Simek
Quoted 11 lines · Michal Simek

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

Applied to u-boot/master, thanks!

Signature · 8 lines
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>