[5/9] app/test-cmdline: add python2 deprecation notice
diff mbox series

Message ID 20200710101055.33671-6-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
Cc: Olivier Matz <olivier.matz@6wind.com>

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

Patch
diff mbox series

diff --git a/app/test-cmdline/cmdline_test.py b/app/test-cmdline/cmdline_test.py
index 3a8fac426..954428e2b 100755
--- a/app/test-cmdline/cmdline_test.py
+++ b/app/test-cmdline/cmdline_test.py
@@ -19,6 +19,9 @@  def runTest(child, test):
         return 0
     child.expect(test["Result"], 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)
 
 #
 # history test is a special case