Просмотр исходного кода

Update run.py

Regression tests: fix python2.7-style logs via print
Kim Kulling 9 лет назад
Родитель
Сommit
1cce8426c6
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      test/regression/run.py

+ 3 - 3
test/regression/run.py

@@ -166,7 +166,7 @@ def getEnvVar( var ):
     if Environment.has_key( var ):
     if Environment.has_key( var ):
         return Environment[ var ]
         return Environment[ var ]
     else:
     else:
-        print "Error: cannot find " + var
+        print ( "Error: cannot find " + var )
     return ""
     return ""
     
     
 # -------------------------------------------------------------------------------
 # -------------------------------------------------------------------------------
@@ -217,12 +217,12 @@ def process_dir(d, outfile_results, zipin, result ):
             outfile_results.write("assimp dump    "+"-"*80+"\n")
             outfile_results.write("assimp dump    "+"-"*80+"\n")
             outfile_results.flush()
             outfile_results.flush()
             assimp_bin_path = getEnvVar("assimp_path")
             assimp_bin_path = getEnvVar("assimp_path")
-            print "assimp_bin_path = ", assimp_bin_path
+            print( assimp_bin_path = " + assimp_bin_pat )
             command = [assimp_bin_path,
             command = [assimp_bin_path,
                 "dump",
                 "dump",
                 fullpath, outfile_actual, "-b", "-s", "-l" ] +\
                 fullpath, outfile_actual, "-b", "-s", "-l" ] +\
                 pppreset.split()
                 pppreset.split()
-            print "command = ", command
+            print(command = " + command )
             r = subprocess.call(command, **shellparams)
             r = subprocess.call(command, **shellparams)
             outfile_results.flush()
             outfile_results.flush()