]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test: py: tests: Compare value instead of object
authorT Karthik Reddy <t.karthik.reddy@xilinx.com>
Tue, 12 Mar 2019 14:50:24 +0000 (20:20 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 13 Mar 2019 14:19:21 +0000 (15:19 +0100)
This patch corrects comparing value instead of comparing objects

Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
test/py/tests/test_zynq_aes.py
test/py/tests/test_zynq_rsa.py

index a5f5187b11f9b9ea6c1e854ae98f19975590c065..77e4db09013eda67aad9a7fd7b07af4a665eb641 100644 (file)
@@ -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')
index f5014d44ffaf3ecb529256fdb1279dd6b98b62d9..56acb6474f0568b1a644dd2a3b041736cac590dd 100644 (file)
@@ -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')