From: T Karthik Reddy Date: Tue, 12 Mar 2019 14:50:25 +0000 (+0530) Subject: test: py: tests: Correct zynq aes & rsa py-test cases X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f5fbd45ddb1e5274b4c584a964b94064f4899479;p=thirdparty%2Fu-boot.git test: py: tests: Correct zynq aes & rsa py-test cases This patch corrects zynq aes & rsa py-test cases as per changes in zynq aes and rsa commands. 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 77e4db09013..574d2a9ffda 100644 --- a/test/py/tests/test_zynq_aes.py +++ b/test/py/tests/test_zynq_aes.py @@ -85,8 +85,8 @@ def test_zynq_aes_image(u_boot_console): if not dstsize: pytest.skip('No dstlen specified in env file to read') - expected_zynqaes = 'zynqaes [operation type] ' - output = u_boot_console.run_command('zynqaes %x $filesize %x %x' % (srcaddr, dstaddr, dstsize)) + expected_zynqaes = 'zynq aes [operation type] ' + output = u_boot_console.run_command('zynq aes %x $filesize %x %x' % (srcaddr, dstaddr, dstsize)) assert expected_zynqaes not in output @pytest.mark.buildconfigspec('cmd_zynq_aes') @@ -114,6 +114,6 @@ def test_zynq_aes_bitstream(u_boot_console): output = u_boot_console.run_command('tftpboot %x %s' % (srcaddr, fn)) assert expected_tftp in output - expected_zynqaes = 'zynqaes [operation type] ' - output = u_boot_console.run_command('zynqaes load %x $filesize' % (srcaddr)) + expected_zynqaes = 'zynq aes [operation type] ' + output = u_boot_console.run_command('zynq aes load %x $filesize' % (srcaddr)) assert expected_zynqaes not in output diff --git a/test/py/tests/test_zynq_rsa.py b/test/py/tests/test_zynq_rsa.py index 56acb6474f0..8f477542f0c 100644 --- a/test/py/tests/test_zynq_rsa.py +++ b/test/py/tests/test_zynq_rsa.py @@ -75,8 +75,8 @@ def test_zynq_rsa_image(u_boot_console): output = u_boot_console.run_command('tftpboot %x %s' % (srcaddr, fn)) assert expected_tftp in output - expected_zynqrsa = 'zynqrsa ' - output = u_boot_console.run_command('zynqrsa %x ' % (srcaddr)) + expected_zynqrsa = 'zynq rsa ' + output = u_boot_console.run_command('zynq rsa %x ' % (srcaddr)) assert expected_zynqrsa not in output @pytest.mark.buildconfigspec('cmd_zynq_rsa') @@ -104,6 +104,6 @@ def test_zynq_rsa_image_invalid(u_boot_console): output = u_boot_console.run_command('tftpboot %x %s' % (srcaddr, fninvalid)) assert expected_tftp in output - expected_zynqrsa = 'zynqrsa ' - output = u_boot_console.run_command('zynqrsa %x ' % (srcaddr)) + expected_zynqrsa = 'zynq rsa ' + output = u_boot_console.run_command('zynq rsa %x ' % (srcaddr)) assert expected_zynqrsa in output