add python2 deprecation notice
[dpdk.git] / app / test-cmdline / cmdline_test.py
index 3a8fac4..954428e 100755 (executable)
@@ -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