[6/9] app/test: add python2 deprecation notice
diff mbox series

Message ID 20200710101055.33671-7-louise.kilheeney@intel.com
State Accepted, archived
Delegated to: David Marchand
Headers show
Series
  • python2 deprecation notice
Related show

Checks

Context Check Description
ci/Intel-compilation success Compilation OK
ci/checkpatch success coding style OK

Commit Message

Louise Kilheeney July 10, 2020, 10:10 a.m. UTC
add python2 deprecation notice

Signed-off-by: Louise Kilheeney <louise.kilheeney@intel.com>
---
 app/test/autotest.py | 4 ++++
 1 file changed, 4 insertions(+)

Patch
diff mbox series

diff --git a/app/test/autotest.py b/app/test/autotest.py
index b42f48879..cf7584ccd 100644
--- a/app/test/autotest.py
+++ b/app/test/autotest.py
@@ -17,6 +17,10 @@  def usage():
     usage()
     sys.exit(1)
 
+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)
+
 target = sys.argv[2]
 
 test_whitelist = None