git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/hns3: rename RSS functions
[dpdk.git]
/
app
/
test-cmdline
/
cmdline_test.py
diff --git
a/app/test-cmdline/cmdline_test.py
b/app/test-cmdline/cmdline_test.py
index
954428e
..
f337731
100755
(executable)
--- a/
app/test-cmdline/cmdline_test.py
+++ b/
app/test-cmdline/cmdline_test.py
@@
-1,9
+1,8
@@
-#!/usr/bin/env python
+#!/usr/bin/env python
3
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2010-2014 Intel Corporation
# Script that runs cmdline_test app and feeds keystrokes into it.
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2010-2014 Intel Corporation
# Script that runs cmdline_test app and feeds keystrokes into it.
-from __future__ import print_function
import cmdline_test_data
import os
import pexpect
import cmdline_test_data
import os
import pexpect
@@
-19,10
+18,6
@@
def runTest(child, test):
return 0
child.expect(test["Result"], 1)
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
#
#
# history test is a special case
#
@@
-43,7
+38,7
@@
def runHistoryTest(child):
i = 0
# fill the history with numbers
i = 0
# fill the history with numbers
- while i < history_size / 10:
+ while i < history_size /
/
10:
# add 1 to prevent from parsing as octals
child.send("1" + str(i).zfill(8) + cmdline_test_data.ENTER)
# the app will simply print out the number
# add 1 to prevent from parsing as octals
child.send("1" + str(i).zfill(8) + cmdline_test_data.ENTER)
# the app will simply print out the number