mirror of https://github.com/ARMmbed/mbed-os.git
Fixing execution of OS2 tests
parent
3b138fba02
commit
27bcaa47d5
|
@ -933,15 +933,16 @@ class SingleTestRunner(object):
|
||||||
reset_tout = mut.get('reset_tout') # COPY_IMAGE -> RESET_PROC -> SLEEP(RESET_TOUT)
|
reset_tout = mut.get('reset_tout') # COPY_IMAGE -> RESET_PROC -> SLEEP(RESET_TOUT)
|
||||||
|
|
||||||
# When the build and test system were separate, this was relative to a
|
# When the build and test system were separate, this was relative to a
|
||||||
# base network folder base path: join(NETWORK_BASE_PATH, )
|
# base network folder base path: join(NETWORK_BASE_PATH, ).
|
||||||
image_path = image
|
# "image" is now a list representing a development image and an update image
|
||||||
|
# (for device management). When testing, we only use the development image.
|
||||||
|
image_path = image[0]
|
||||||
|
|
||||||
# Host test execution
|
# Host test execution
|
||||||
start_host_exec_time = time()
|
start_host_exec_time = time()
|
||||||
|
|
||||||
single_test_result = self.TEST_RESULT_UNDEF # single test run result
|
single_test_result = self.TEST_RESULT_UNDEF # single test run result
|
||||||
_copy_method = selected_copy_method
|
_copy_method = selected_copy_method
|
||||||
|
|
||||||
if not exists(image_path):
|
if not exists(image_path):
|
||||||
single_test_result = self.TEST_RESULT_NO_IMAGE
|
single_test_result = self.TEST_RESULT_NO_IMAGE
|
||||||
elapsed_time = 0
|
elapsed_time = 0
|
||||||
|
@ -2381,4 +2382,4 @@ def build_tests(tests, base_source_paths, build_path, target, toolchain_name,
|
||||||
def test_spec_from_test_builds(test_builds):
|
def test_spec_from_test_builds(test_builds):
|
||||||
return {
|
return {
|
||||||
"builds": test_builds
|
"builds": test_builds
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue