On Wed, Oct 05, 2016 at 03:43:47PM +0200, Jan Tluka wrote:
RHEL6 has older python version 2.6.6 and that version requires an
index in
formatting string, e.g. {0}
For python versions 2.7 and above the index can be omitted.
Fixes: d2bee9f ("PktgenTx: Remove all devices from all threads in init")
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
test_modules/PktgenTx.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test_modules/PktgenTx.py b/test_modules/PktgenTx.py
index 51fcd4c..fa32261 100644
--- a/test_modules/PktgenTx.py
+++ b/test_modules/PktgenTx.py
@@ -62,7 +62,7 @@ def pktget_options_merge(pktgen_options, default_pktgen_options):
def pktgen_devices_remove():
for cpu in range(os.sysconf('SC_NPROCESSORS_ONLN')):
- cmd = "echo rem_device_all > /proc/net/pktgen/kpktgend_{}"
+ cmd = "echo rem_device_all > /proc/net/pktgen/kpktgend_{0}"
exec_cmd(cmd.format(cpu))
class PktgenTx(TestGeneric):
--
2.4.11
_______________________________________________
LNST-developers mailing list -- lnst-developers(a)lists.fedorahosted.org
To unsubscribe send an email to lnst-developers-leave(a)lists.fedorahosted.org
pushed, thanks
-Ondrej