[9/9] app/test-bbdev: add python2 deprecation notice
Checks
Commit Message
Cc: Nicolas Chautru <nicolas.chautru@intel.com>
Signed-off-by: Louise Kilheeney <louise.kilheeney@intel.com>
---
app/test-bbdev/test-bbdev.py | 4 ++++
1 file changed, 4 insertions(+)
Comments
> From: Kilheeney, Louise <louise.kilheeney@intel.com>
>
> Cc: Nicolas Chautru <nicolas.chautru@intel.com>
>
> Signed-off-by: Louise Kilheeney <louise.kilheeney@intel.com>
> ---
> app/test-bbdev/test-bbdev.py | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/app/test-bbdev/test-bbdev.py b/app/test-bbdev/test-bbdev.py
> index e127fb2eb..5ae2dc6c4 100755
> --- a/app/test-bbdev/test-bbdev.py
> +++ b/app/test-bbdev/test-bbdev.py
> @@ -16,6 +16,10 @@ def kill(process):
> print("ERROR: Test app timed out")
> process.kill()
>
> +if sys.version_info.major < 3:
> + print("WARNING: Python 2 is deprecated for use in DPDK, and will not
> work in future releases.", file=sys.stderr)
> + print("Please use Python 3 instead", file=sys.stderr)
> +
> if "RTE_SDK" in os.environ:
> dpdk_path = os.environ["RTE_SDK"]
> else:
> --
Tested the serie on my end to double check.
Thanks
Acked-by: Nicolas Chautru <nicolas.chautru@intel.com>
> 2.17.1
@@ -16,6 +16,10 @@ def kill(process):
print("ERROR: Test app timed out")
process.kill()
+if sys.version_info.major < 3:
+ print("WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.", file=sys.stderr)
+ print("Please use Python 3 instead", file=sys.stderr)
+
if "RTE_SDK" in os.environ:
dpdk_path = os.environ["RTE_SDK"]
else: