| .. | .. |
|---|
| 164 | 164 | def get_all_devices_test_status(file_map): |
|---|
| 165 | 165 | |
|---|
| 166 | 166 | 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): |
|---|
| 168 | 168 | print("Testing = ON for: {}" |
|---|
| 169 | 169 | .format(device.split("/")[5])) |
|---|
| 170 | 170 | else: |
|---|
| .. | .. |
|---|
| 203 | 203 | def set_test_state(state_path, state_value, quiet): |
|---|
| 204 | 204 | |
|---|
| 205 | 205 | write_test_files(state_path, state_value) |
|---|
| 206 | | - if (get_test_state(state_path) is 1): |
|---|
| 206 | + if (get_test_state(state_path) == 1): |
|---|
| 207 | 207 | if (not quiet): |
|---|
| 208 | 208 | print("Testing = ON for device: {}" |
|---|
| 209 | 209 | .format(state_path.split("/")[5])) |
|---|