@@ -389,22 +389,22 @@ def graalpython_gate_runner(args, tasks):
389
389
svm_image = python_svm (["--version" ])
390
390
benchmark = os .path .join (PATH_MESO , "image-magix.py" )
391
391
out = mx .OutputCapture ()
392
- mx .run ([svm_image , benchmark ], nonZeroIsFatal = True , out = mx .TeeOutputCapture (out ))
392
+ mx .run ([svm_image , "-v" , "-S" , "--log.python.level=FINEST" , benchmark ], nonZeroIsFatal = True , out = mx .TeeOutputCapture (out ))
393
393
success = "\n " .join ([
394
394
"[0, 0, 0, 0, 0, 0, 10, 10, 10, 0, 0, 10, 3, 10, 0, 0, 10, 10, 10, 0, 0, 0, 0, 0, 0]" ,
395
395
])
396
396
if success not in out .data :
397
397
mx .abort ('Output from generated SVM image "' + svm_image + '" did not match success pattern:\n ' + success )
398
398
# Test that stdlib paths are not cached on packages
399
399
out = mx .OutputCapture ()
400
- mx .run ([svm_image , "-S " , "--python.StdLibHome=/foobar" , "-c" , "import encodings; print(encodings.__path__)" ], out = mx .TeeOutputCapture (out ))
400
+ mx .run ([svm_image , "-v" , "-S" , "--log.python.level=FINEST " , "--python.StdLibHome=/foobar" , "-c" , "import encodings; print(encodings.__path__)" ], out = mx .TeeOutputCapture (out ))
401
401
if "/foobar" not in out .data :
402
- mx .abort ('Output from generated SVM image "' + svm_image + '" did not have patched std lib path "/foobar", got: \n ' + out . data )
402
+ mx .abort ('Output from generated SVM image "' + svm_image + '" did not have patched std lib path "/foobar"' )
403
403
# Test that stdlib paths are not cached on modules
404
404
out = mx .OutputCapture ()
405
- mx .run ([svm_image , "-S " , "--python.StdLibHome=/foobar" , "-c" , "import encodings; print(encodings.__file__)" ], out = mx .TeeOutputCapture (out ))
405
+ mx .run ([svm_image , "-v" , "-S" , "--log.python.level=FINEST " , "--python.StdLibHome=/foobar" , "-c" , "import encodings; print(encodings.__file__)" ], out = mx .TeeOutputCapture (out ))
406
406
if "/foobar" not in out .data :
407
- mx .abort ('Output from generated SVM image "' + svm_image + '" did not have patched std lib path "/foobar", got: \n ' + out . data )
407
+ mx .abort ('Output from generated SVM image "' + svm_image + '" did not have patched std lib path "/foobar"' )
408
408
# Finally, test that we can start even if the graalvm was moved
409
409
out = mx .OutputCapture ()
410
410
graalvm_home = svm_image .replace (os .path .sep .join (["" , "bin" , "graalpython" ]), "" )
0 commit comments