git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use print() - import print_function - should be fine for both py2 and py3
[nepi.git]
/
test
/
resources
/
linux
/
udptunnel.py
diff --git
a/test/resources/linux/udptunnel.py
b/test/resources/linux/udptunnel.py
index
8d025ce
..
2963f90
100755
(executable)
--- a/
test/resources/linux/udptunnel.py
+++ b/
test/resources/linux/udptunnel.py
@@
-17,6
+17,8
@@
#
# Author: Alina Quereilhac <alina.quereilhac@inria.fr>
#
# Author: Alina Quereilhac <alina.quereilhac@inria.fr>
+from __future__ import print_function
+
from nepi.execution.ec import ExperimentController
from test_utils import skipIfAnyNotAliveWithIdentity
from nepi.execution.ec import ExperimentController
from test_utils import skipIfAnyNotAliveWithIdentity
@@
-72,7
+74,7
@@
class LinuxUdpTunnelTestCase(unittest.TestCase):
ec.wait_finished(app)
ping = ec.trace(app, "stdout")
ec.wait_finished(app)
ping = ec.trace(app, "stdout")
- print
ping
+ print
(ping)
expected = """3 packets transmitted, 3 received, 0% packet loss"""
self.assertTrue(ping.find(expected) > -1)
expected = """3 packets transmitted, 3 received, 0% packet loss"""
self.assertTrue(ping.find(expected) > -1)
@@
-126,7
+128,7
@@
class LinuxUdpTunnelTestCase(unittest.TestCase):
ping = ec.trace(app, "stdout")
ping = ec.trace(app, "stdout")
- print
ping
+ print
(ping)
expected = """3 packets transmitted, 3 received, 0% packet loss"""
self.assertTrue(ping.find(expected) > -1)
expected = """3 packets transmitted, 3 received, 0% packet loss"""
self.assertTrue(ping.find(expected) > -1)