]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
python 3 syntax for print
authorPaul RASCLE <paul.rascle@edf.fr>
Thu, 5 Jul 2018 15:11:23 +0000 (17:11 +0200)
committerPaul RASCLE <paul.rascle@edf.fr>
Thu, 5 Jul 2018 15:11:23 +0000 (17:11 +0200)
src/Launcher/Test/test_launcher.py

index 339e4c8751b67e843c8e78a79a4528f7775544b5..2fd76f2b1b818d9710007ea83c3682942f22a1c7 100755 (executable)
@@ -506,7 +506,7 @@ f.close()
     resManager= salome.lcc.getResourcesManager()
 
     for resource in self.ressources:
-      print "Testing command job on ", resource
+      print("Testing command job on ", resource)
       job_params.result_directory = local_result_dir + resource
       job_params.job_name = "CommandPreJob_" + resource
       job_params.resource_required.name = resource
@@ -521,11 +521,11 @@ f.close()
       launcher.launchJob(job_id)
       # wait for the end of the job
       jobState = launcher.getJobState(job_id)
-      print "Job %d state: %s" % (job_id,jobState)
+      print("Job %d state: %s" % (job_id,jobState))
       while jobState != "FINISHED" and jobState != "FAILED" :
         time.sleep(3)
         jobState = launcher.getJobState(job_id)
-        print "Job %d state: %s" % (job_id,jobState)
+        print("Job %d state: %s" % (job_id,jobState))
         pass
 
       # verify the results
@@ -600,7 +600,7 @@ f.close()
     resManager= salome.lcc.getResourcesManager()
 
     for resource in self.ressources:
-      print "Testing command salome job on ", resource
+      print("Testing command salome job on ", resource)
       job_params.result_directory = local_result_dir + resource
       job_params.job_name = "CommandSalomeJob_" + resource
       job_params.resource_required.name = resource
@@ -615,11 +615,11 @@ f.close()
       launcher.launchJob(job_id)
       # wait for the end of the job
       jobState = launcher.getJobState(job_id)
-      print "Job %d state: %s" % (job_id,jobState)
+      print("Job %d state: %s" % (job_id,jobState))
       while jobState != "FINISHED" and jobState != "FAILED" :
         time.sleep(3)
         jobState = launcher.getJobState(job_id)
-        print "Job %d state: %s" % (job_id,jobState)
+        print("Job %d state: %s" % (job_id,jobState))
         pass
 
       # verify the results