[dts] [PATCH V1] tests/virtio_perf:change the method of verify_result

Zhu, ShuaiX shuaix.zhu at intel.com
Fri Jun 14 11:54:18 CEST 2019


Tested-by: Zhu, ShuaiX <shuaix.zhu at intel.com>

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of yaobing
> Sent: Friday, June 14, 2019 5:28 PM
> To: dts at dpdk.org
> Cc: Yao, BingX Y <bingx.y.yao at intel.com>
> Subject: [dts] [PATCH V1] tests/virtio_perf:change the method of verify_result
> 
> change the method of verify_result
> 
> Signed-off-by: yaobing <bingx.y.yao at intel.com>
> ---
>  tests/TestSuite_virtio_perf_cryptodev_func.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/TestSuite_virtio_perf_cryptodev_func.py
> b/tests/TestSuite_virtio_perf_cryptodev_func.py
> index 1f23363..b0b23d5 100644
> --- a/tests/TestSuite_virtio_perf_cryptodev_func.py
> +++ b/tests/TestSuite_virtio_perf_cryptodev_func.py
> @@ -209,7 +209,7 @@ class VirtioCryptodevPerfTest(TestCase):
>          crypto_perf_opt_str = cc.get_opt_str(self,
> self._default_crypto_perf_opts)
>          out = self._run_crypto_perf(eal_opt_str, crypto_perf_opt_str)
>          self.logger.info(out)
> -        self.verify("Failed" not in out, "Test fail")
> +        self.verify("Enqueued" in out, "Test fail")
>          self.verify("Error" not in out, "Test fail")
> 
>      def test_virtio_aes_cbc_sha1_hmac(self):
> @@ -220,7 +220,7 @@ class VirtioCryptodevPerfTest(TestCase):
>          crypto_perf_opt_str = cc.get_opt_str(self,
> self._default_crypto_perf_opts)
>          out = self._run_crypto_perf(eal_opt_str, crypto_perf_opt_str)
>          self.logger.info(out)
> -        self.verify("Failed" not in out, "Test fail")
> +        self.verify("Enqueued" in out, "Test fail")
>          self.verify("Error" not in out, "Test fail")
> 
>      def _run_crypto_perf(self, eal_opt_str, crypto_perf_opt_str):
> --
> 2.17.2



More information about the dts mailing list