Skip to content

Commit f9f6b5f

Browse files
committed
Return the actual return code from benchmarks
1 parent 2ea18e7 commit f9f6b5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mx.graalpython/mx_graalpython_python_benchmarks.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ def _vmRun(self, vm, workdir, command, benchmarks, bmSuiteArgs):
571571
mx.log(f"Return code of benchmark harness: {retcode}")
572572
shutil.copy(join(workdir, json_file), join(SUITE.dir, "raw_results.json"))
573573
shutil.copy(join(workdir, json_file_memory), join(SUITE.dir, "raw_results_memory.json"))
574-
return 0, ",".join([join(workdir, json_file), join(workdir, json_file_memory)])
574+
return retcode, ",".join([join(workdir, json_file), join(workdir, json_file_memory)])
575575

576576

577577
class PyPySuite(PySuite):
@@ -652,7 +652,7 @@ def _vmRun(self, vm, workdir, command, benchmarks, bmSuiteArgs):
652652
)
653653
shutil.copy(join(workdir, json_file), join(SUITE.dir, "raw_results.json"))
654654
mx.log(f"Return code of benchmark harness: {retcode}")
655-
return 0, join(workdir, json_file)
655+
return retcode, join(workdir, json_file)
656656

657657

658658
class NumPySuite(PySuite):
@@ -766,7 +766,7 @@ def _vmRun(self, vm, workdir, command, benchmarks, bmSuiteArgs):
766766
if json_file:
767767
json_file = json_file[0]
768768
shutil.copy(json_file, join(SUITE.dir, "raw_results.json"))
769-
return 0, json_file
769+
return retcode, json_file
770770
else:
771771
return -1, ""
772772

@@ -906,7 +906,7 @@ def _vmRun(self, vm, workdir, command, benchmarks, bmSuiteArgs):
906906
if json_file:
907907
json_file = json_file[0]
908908
shutil.copy(json_file, join(SUITE.dir, "raw_results.json"))
909-
return 0, json_file
909+
return retcode, json_file
910910
else:
911911
return -1, ""
912912

0 commit comments

Comments
 (0)