mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 18:58:01 +00:00 
			
		
		
		
	cicd: Make sta_connect print results to stdout when called as independent script.
This commit is contained in:
		| @@ -108,6 +108,9 @@ class LFCliBase: | ||||
|         fail_messages = self.get_failed_result_list() | ||||
|         return "\n".join(fail_messages) | ||||
|  | ||||
|     def get_all_message(self): | ||||
|         return "\n".join(self.test_results) | ||||
|  | ||||
|     def passes(self): | ||||
|         pass_counter = 0 | ||||
|         fail_counter = 0 | ||||
|   | ||||
| @@ -499,9 +499,18 @@ Example: | ||||
|         staConnect.dut_ssid = args.dut_ssid | ||||
|  | ||||
|     staConnect.run() | ||||
|  | ||||
|     run_results = staConnect.get_result_list() | ||||
|  | ||||
|      | ||||
|     is_passing = staConnect.passes() | ||||
|     if is_passing == False: | ||||
|         print("FAIL:  Some tests failed") | ||||
|     else: | ||||
|         print("PASS:  All tests pass") | ||||
|  | ||||
|     print(staConnect.get_all_message()) | ||||
|  | ||||
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ben Greear
					Ben Greear