hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/hv/vmbus_testing
....@@ -164,7 +164,7 @@
164164 def get_all_devices_test_status(file_map):
165165
166166 for device in file_map:
167
- if (get_test_state(locate_state(device, file_map)) is 1):
167
+ if (get_test_state(locate_state(device, file_map)) == 1):
168168 print("Testing = ON for: {}"
169169 .format(device.split("/")[5]))
170170 else:
....@@ -203,7 +203,7 @@
203203 def set_test_state(state_path, state_value, quiet):
204204
205205 write_test_files(state_path, state_value)
206
- if (get_test_state(state_path) is 1):
206
+ if (get_test_state(state_path) == 1):
207207 if (not quiet):
208208 print("Testing = ON for device: {}"
209209 .format(state_path.split("/")[5]))