From: T Karthik Reddy Date: Tue, 12 Mar 2019 14:50:24 +0000 (+0530) Subject: test: py: tests: Compare value instead of object X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9eb4a87785d77d640038a9860f292f0a1d392e5e;p=thirdparty%2Fu-boot.git 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 --- 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')