From: He Yin Ling Date: Thu, 3 Jan 2019 01:57:47 +0000 (+0800) Subject: test: get bin path from `dut.app.flash_files` instead of `dut.download_config` X-Git-Tag: v3.3-beta2~126^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86cc434ff187cd1364283924b3d43aab83308963;p=esp-idf test: get bin path from `dut.app.flash_files` instead of `dut.download_config` --- 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])