From 9eb4a87785d77d640038a9860f292f0a1d392e5e Mon Sep 17 00:00:00 2001 From: T Karthik Reddy Date: Tue, 12 Mar 2019 20:20:24 +0530 Subject: [PATCH] test: py: tests: Compare value instead of object This patch corrects comparing value instead of comparing objects Signed-off-by: T Karthik Reddy Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- test/py/tests/test_zynq_aes.py | 2 +- test/py/tests/test_zynq_rsa.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/py/tests/test_zynq_aes.py b/test/py/tests/test_zynq_aes.py index a5f5187b11f..77e4db09013 100644 --- a/test/py/tests/test_zynq_aes.py +++ b/test/py/tests/test_zynq_aes.py @@ -49,7 +49,7 @@ def zynq_aes_pre_commands(u_boot_console): if not m: pytest.skip('bootmode cannnot be determined') bootmode=m.group(1) - if bootmode is "jtag": + if bootmode == "jtag": pytest.skip('skipping due to jtag bootmode') @pytest.mark.buildconfigspec('cmd_zynq_aes') diff --git a/test/py/tests/test_zynq_rsa.py b/test/py/tests/test_zynq_rsa.py index f5014d44ffa..56acb6474f0 100644 --- a/test/py/tests/test_zynq_rsa.py +++ b/test/py/tests/test_zynq_rsa.py @@ -47,7 +47,7 @@ def zynq_rsa_pre_commands(u_boot_console): if not m: pytest.skip('bootmode cannnot be determined') bootmode=m.group(1) - if bootmode is "jtag": + if bootmode == "jtag": pytest.skip('skipping due to jtag bootmode') @pytest.mark.buildconfigspec('cmd_zynq_rsa') -- 2.47.3