[5/9] app/test-cmdline: add python2 deprecation notice
Checks
Commit Message
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(+)
@@ -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