X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=examples%2Fomf%2Fnitos_omf6_ping.py;h=6deaf18e405cdccc46c17ad647275d034114c006;hb=039fbd9629d7570d4c175a5448d24badcd0f3aba;hp=4232200712ced93469d78b8dd77cea64bb673720;hpb=0933e2711c57a658305f36301a4a894a195d8750;p=nepi.git diff --git a/examples/omf/nitos_omf6_ping.py b/examples/omf/nitos_omf6_ping.py index 42322007..6deaf18e 100644 --- a/examples/omf/nitos_omf6_ping.py +++ b/examples/omf/nitos_omf6_ping.py @@ -6,9 +6,8 @@ # Copyright (C) 2013 INRIA # # This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation; # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -46,6 +45,8 @@ # - t3 (t2 + 2s) : Kill the application # +from __future__ import print_function + from nepi.execution.ec import ExperimentController from nepi.execution.resource import ResourceAction, ResourceState @@ -86,7 +87,7 @@ chan = options.channel gateway = options.gateway # Create the EC -ec = ExperimentController(exp_id="nitos_omf6_ping2") +ec = ExperimentController(exp_id="nitos_omf6_ping") # Create and Configure the Nodes node1 = ec.register_resource("omf::Node") @@ -149,7 +150,7 @@ ec.wait_finished([app1]) # Retrieve the output of the ping command ping_output = ec.trace(app1, "stdout") -print "\n PING OUTPUT\n", ping_output, "\n" +print("\n PING OUTPUT\n", ping_output, "\n") # Stop Experiment ec.shutdown()