mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 02:38:03 +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() |         fail_messages = self.get_failed_result_list() | ||||||
|         return "\n".join(fail_messages) |         return "\n".join(fail_messages) | ||||||
|  |  | ||||||
|  |     def get_all_message(self): | ||||||
|  |         return "\n".join(self.test_results) | ||||||
|  |  | ||||||
|     def passes(self): |     def passes(self): | ||||||
|         pass_counter = 0 |         pass_counter = 0 | ||||||
|         fail_counter = 0 |         fail_counter = 0 | ||||||
|   | |||||||
| @@ -499,9 +499,18 @@ Example: | |||||||
|         staConnect.dut_ssid = args.dut_ssid |         staConnect.dut_ssid = args.dut_ssid | ||||||
|  |  | ||||||
|     staConnect.run() |     staConnect.run() | ||||||
|  |  | ||||||
|     run_results = staConnect.get_result_list() |     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