mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 18:58:01 +00:00 
			
		
		
		
	sta_connect: Fix whitespace
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
		| @@ -13,7 +13,6 @@ if sys.version_info[0] != 3: | |||||||
|     print("This script requires Python 3") |     print("This script requires Python 3") | ||||||
|     exit(1) |     exit(1) | ||||||
|  |  | ||||||
|   |  | ||||||
| sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../"))) | sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../"))) | ||||||
|  |  | ||||||
| LFUtils = importlib.import_module("py-json.LANforge.LFUtils") | LFUtils = importlib.import_module("py-json.LANforge.LFUtils") | ||||||
| @@ -99,7 +98,6 @@ class StaConnect(Realm): | |||||||
|     def num_associated(self, bssid): |     def num_associated(self, bssid): | ||||||
|         counter = 0 |         counter = 0 | ||||||
|         # print("there are %d results" % len(self.station_results)) |         # print("there are %d results" % len(self.station_results)) | ||||||
|         fields = "_links,port,alias,ip,ap,port+type" |  | ||||||
|         if (self.station_results is None) or (len(self.station_results) < 1): |         if (self.station_results is None) or (len(self.station_results) < 1): | ||||||
|             self.get_failed_result_list() |             self.get_failed_result_list() | ||||||
|         for eid, record in self.station_results.items(): |         for eid, record in self.station_results.items(): | ||||||
| @@ -254,7 +252,8 @@ class StaConnect(Realm): | |||||||
|                         # self.test_results.append("PASSED: ) |                         # self.test_results.append("PASSED: ) | ||||||
|                         # print("PASSED: Connected to BSSID: "+ap) |                         # print("PASSED: Connected to BSSID: "+ap) | ||||||
|                     else: |                     else: | ||||||
|                         self._fail("%s connected to wrong BSSID, requested: %s  Actual: %s" % (sta_name, self.dut_bssid, ap)) |                         self._fail( | ||||||
|  |                             "%s connected to wrong BSSID, requested: %s  Actual: %s" % (sta_name, self.dut_bssid, ap)) | ||||||
|             else: |             else: | ||||||
|                 self._fail(sta_name + " did not connect to AP") |                 self._fail(sta_name + " did not connect to AP") | ||||||
|                 return False |                 return False | ||||||
| @@ -506,7 +505,7 @@ Example: | |||||||
|  |  | ||||||
|     staConnect.run() |     staConnect.run() | ||||||
|  |  | ||||||
|     run_results = staConnect.get_result_list() |     staConnect.get_result_list() | ||||||
|  |  | ||||||
|     if not staConnect.passes(): |     if not staConnect.passes(): | ||||||
|         print("FAIL:  Some tests failed") |         print("FAIL:  Some tests failed") | ||||||
| @@ -522,6 +521,7 @@ Example: | |||||||
|  |  | ||||||
|     print(staConnect.get_all_message()) |     print(staConnect.get_all_message()) | ||||||
|  |  | ||||||
|  |  | ||||||
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Matthew Stidham
					Matthew Stidham