From f8a720a41dac97d53dd52c6dbc067993525015e0 Mon Sep 17 00:00:00 2001 From: NikhitaR-IFX Date: Tue, 30 Jan 2024 10:29:43 +0530 Subject: [PATCH] tests/psoc6: Add device to mpremote cmd. Signed-off-by: NikhitaR-IFX --- tests/psoc6/run_psoc6_tests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/psoc6/run_psoc6_tests.sh b/tests/psoc6/run_psoc6_tests.sh index 82cc489a0c562..71c26c4da7e1a 100755 --- a/tests/psoc6/run_psoc6_tests.sh +++ b/tests/psoc6/run_psoc6_tests.sh @@ -264,7 +264,7 @@ if [ ${fs} -eq 1 ]; then echo echo " saving test_fs_small_file.txt to FS - (size : 10KB) " - command_output=$( ../tools/mpremote/mpremote.py cp ./test_inputs/test_fs_small_file.txt :/) + command_output=$( ../tools/mpremote/mpremote.py connect ${device0} cp ./test_inputs/test_fs_small_file.txt :/) exp_output="cp ./test_inputs/test_fs_small_file.txt :/" if [ "$command_output" != "$exp_output" ]; then echo "Error: Cannot save small file." @@ -275,7 +275,7 @@ if [ ${fs} -eq 1 ]; then if [ ${afs} -eq 1 ]; then echo " saving test_fs_medium_file.txt to FS - (size : 500KB) " - command_output=$(../tools/mpremote/mpremote.py cp test_inputs/test_fs_medium_file.txt :/) + command_output=$(../tools/mpremote/mpremote.py connect ${device0} cp test_inputs/test_fs_medium_file.txt :/) exp_output="cp test_inputs/test_fs_medium_file.txt :/" if [ "$command_output" != "$exp_output" ]; then echo "Error: Cannot save medium file." @@ -283,7 +283,7 @@ if [ ${fs} -eq 1 ]; then fi echo " saving test_fs_large_file.txt to FS - (size : 1MB) " - command_output=$(../tools/mpremote/mpremote.py cp test_inputs/test_fs_large_file.txt :/) + command_output=$(../tools/mpremote/mpremote.py connect ${device0} cp test_inputs/test_fs_large_file.txt :/) exp_output="cp test_inputs/test_fs_large_file.txt :/" if [ "$command_output" != "$exp_output" ]; then echo "Error: Cannot save large file."