]> granicus.if.org Git - esp-idf/commitdiff
test: get bin path from `dut.app.flash_files` instead of `dut.download_config`
authorHe Yin Ling <heyinling@espressif.com>
Thu, 3 Jan 2019 01:57:47 +0000 (09:57 +0800)
committerHe Yin Ling <heyinling@espressif.com>
Thu, 3 Jan 2019 01:57:47 +0000 (09:57 +0800)
examples/storage/parttool/example_test.py
examples/system/ota/otatool/example_test.py

index 17f8d01afc84cd347c6dd8c9ef004d55ecc307a5..6ba90c17569bd17f609d24d825044aa8f3c61598 100644 (file)
@@ -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])
index 0cfa44ef1e397c7e7108fb87c42090a849d6067c..a22ebf5a89ae4f5529d9812582fd58169189c8ca 100644 (file)
@@ -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])