@@ -29,6 +29,8 @@ def main():
2929 # Validate config file exists
3030 if not os .path .exists (args .config ):
3131 print (f"ERROR: Configuration file not found: { args .config } " )
32+ if args .verbose :
33+ print ("Exiting: Missing configuration file" )
3234 return
3335
3436 try :
@@ -43,12 +45,16 @@ def main():
4345
4446 # Check environment
4547 if not executor .check_environment ():
48+ if args .verbose :
49+ print ("Exiting: Environment check failed" )
4650 return
4751
4852 # Build RCCL (if not --no-build)
4953 if not args .no_build :
5054 if not executor .build_rccl ():
5155 print ("ERROR: Build failed" )
56+ if args .verbose :
57+ print ("Exiting: RCCL build failed" )
5258 return
5359
5460 # Parse and run test suites
@@ -90,18 +96,25 @@ def main():
9096 failed = executor .test_results .count (executor .RESULT_FAILED )
9197 timeout = executor .test_results .count (executor .RESULT_TIMEOUT )
9298 if failed > 0 or timeout > 0 :
99+ if args .verbose :
100+ print (f"Exiting: Tests failed (failed={ failed } , timeout={ timeout } )" )
93101 return
94102
103+ if args .verbose :
104+ print ("Exiting: Test run completed successfully" )
95105 return
96106
97107 except KeyboardInterrupt :
98108 print ("\n \n Interrupted by user" )
109+ if args .verbose :
110+ print ("Exiting: User interrupted execution" )
99111 return
100112 except Exception as e :
101113 print (f"\n ERROR: { e } " )
102114 if args .verbose :
103115 import traceback
104116 traceback .print_exc ()
117+ print ("Exiting: Unhandled exception occurred" )
105118 return
106119
107120
0 commit comments