From 86cc434ff187cd1364283924b3d43aab83308963 Mon Sep 17 00:00:00 2001 From: He Yin Ling Date: Thu, 3 Jan 2019 09:57:47 +0800 Subject: [PATCH] test: get bin path from `dut.app.flash_files` instead of `dut.download_config` --- examples/storage/parttool/example_test.py | 6 +++--- examples/system/ota/otatool/example_test.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/storage/parttool/example_test.py b/examples/storage/parttool/example_test.py index 17f8d01afc..6ba90c1756 100644 --- a/examples/storage/parttool/example_test.py +++ b/examples/storage/parttool/example_test.py @@ -29,9 +29,9 @@ def test_examples_parttool(env, extra_data): script_path = os.path.join(os.getenv("IDF_PATH"), "examples", "storage", "parttool", "parttool_example.py") binary_path = "" - for config in dut.download_config: - if "parttool.bin" in config: - binary_path = config + for flash_file in dut.app.flash_files: + if "parttool.bin" in flash_file[1]: + binary_path = flash_file[1] break subprocess.check_call([sys.executable, script_path, "--binary", binary_path]) diff --git a/examples/system/ota/otatool/example_test.py b/examples/system/ota/otatool/example_test.py index 0cfa44ef1e..a22ebf5a89 100644 --- a/examples/system/ota/otatool/example_test.py +++ b/examples/system/ota/otatool/example_test.py @@ -32,9 +32,9 @@ def test_otatool_example(env, extra_data): script_path = os.path.join(os.getenv("IDF_PATH"), "examples", "system", "ota", "otatool", "otatool_example.py") binary_path = "" - for config in dut.download_config: - if "otatool.bin" in config: - binary_path = config + for flash_file in dut.app.flash_files: + if "otatool.bin" in flash_file[1]: + binary_path = flash_file[1] break subprocess.check_call([sys.executable, script_path, "--binary", binary_path]) -- 2.40.0