Skip to content

Commit a4a00ff

Browse files
bridadanCruz Monrreal II
authored andcommitted
Fixing execution of OS2 tests
1 parent c401662 commit a4a00ff

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tools/test_api.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -933,15 +933,16 @@ def handle_mut(self, mut, data, target_name, toolchain_name, test_loops=1):
933933
reset_tout = mut.get('reset_tout') # COPY_IMAGE -> RESET_PROC -> SLEEP(RESET_TOUT)
934934

935935
# When the build and test system were separate, this was relative to a
936-
# base network folder base path: join(NETWORK_BASE_PATH, )
937-
image_path = image
936+
# base network folder base path: join(NETWORK_BASE_PATH, ).
937+
# "image" is now a list representing a development image and an update image
938+
# (for device management). When testing, we only use the development image.
939+
image_path = image[0]
938940

939941
# Host test execution
940942
start_host_exec_time = time()
941943

942944
single_test_result = self.TEST_RESULT_UNDEF # single test run result
943945
_copy_method = selected_copy_method
944-
945946
if not exists(image_path):
946947
single_test_result = self.TEST_RESULT_NO_IMAGE
947948
elapsed_time = 0
@@ -2381,4 +2382,4 @@ def build_tests(tests, base_source_paths, build_path, target, toolchain_name,
23812382
def test_spec_from_test_builds(test_builds):
23822383
return {
23832384
"builds": test_builds
2384-
}
2385+
}

0 commit comments

Comments
 (0)