diff --git a/openandroidinstaller/tooling.py b/openandroidinstaller/tooling.py index 50e170b7..ffaaae27 100644 --- a/openandroidinstaller/tooling.py +++ b/openandroidinstaller/tooling.py @@ -604,7 +604,6 @@ def search_device(platform: str, bin_path: Path) -> SearchResult: # "grep", # "ro.product.device", ] - logger.info(f"Run command: {command}") device_prop = check_output( command, stderr=STDOUT, diff --git a/tests/test_tooling.py b/tests/test_tooling.py index 33cb26c2..4d6cc623 100644 --- a/tests/test_tooling.py +++ b/tests/test_tooling.py @@ -62,18 +62,18 @@ def test_search_device_success(mocker): ) # test linux - device_code = search_device( + search_result = search_device( platform="linux", bin_path=Path("openandroidinstaller/bin/") ) - assert device_code == "sargo" + assert search_result.device_code == "sargo" # test windows - device_code = search_device( + search_result = search_device( platform="windows", bin_path=Path("openandroidinstaller/bin/") ) - assert device_code == "sargo" + assert search_result.device_code == "sargo" def test_search_device_failure(mocker): @@ -87,11 +87,11 @@ def patched_check_output(*args, **kwargs): patched_check_output, ) - device_code = search_device( + search_result = search_device( platform="linux", bin_path=Path("openandroidinstaller/bin/") ) - assert device_code is None + assert search_result.device_code is None def test_run_command_success(mocker):