@@ -1421,21 +1421,23 @@ def RunBenchmarks():
1421
1421
)
1422
1422
1423
1423
# Write completion status file(s)
1424
+ if FLAGS .completion_status_file :
1425
+ with open (FLAGS .completion_status_file , 'w' ) as status_file :
1426
+ _WriteCompletionStatusFile (benchmark_specs , status_file )
1424
1427
completion_status_file_name = vm_util .PrependTempDir (
1425
1428
COMPLETION_STATUS_FILE_NAME
1426
1429
)
1427
1430
with open (completion_status_file_name , 'w' ) as status_file :
1428
1431
_WriteCompletionStatusFile (benchmark_specs , status_file )
1429
- if FLAGS .completion_status_file :
1430
- with open (FLAGS .completion_status_file , 'w' ) as status_file :
1431
- _WriteCompletionStatusFile (benchmark_specs , status_file )
1432
1432
1433
+ # Upload PKB logs to GCS after all benchmark runs are complete.
1434
+ log_util .CollectPKBLogs ()
1433
1435
all_benchmarks_succeeded = all (
1434
1436
spec .status == benchmark_status .SUCCEEDED for spec in benchmark_specs
1435
1437
)
1436
- # Upload PKB logs to GCS after all benchmark runs are complete.
1437
- log_util . CollectPKBLogs ( )
1438
- return 0 if all_benchmarks_succeeded else 1
1438
+ return_code = 0 if all_benchmarks_succeeded else 1
1439
+ logging . info ( 'PKB exiting with return_code %s' , return_code )
1440
+ return return_code
1439
1441
1440
1442
1441
1443
def _GenerateBenchmarkDocumentation ():
0 commit comments