Skip to content

Commit

Permalink
tests/psoc6: Install requirements.
Browse files Browse the repository at this point in the history
Signed-off-by: NikhitaR-IFX <Nikhita.Rajasekhar@infineon.com>
  • Loading branch information
NikhitaR-IFX committed Jan 29, 2024
1 parent 237d906 commit a11dd50
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/psoc6/run_psoc6_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,9 @@ if [ ${fs} -eq 1 ]; then
echo " attempting to save different test files in flash "
echo
echo " saving test_fs_small_file.txt to FS - (size : 10KB) "
MPREMOTE="../tools/mpremote/mpremote.py"
command_output=$(python ${MPREMOTE} fs cp test_inputs/test_fs_small_file.txt :/)
MPREMOTE="../../tools/mpremote/mpremote.py"
pip install -r ../../tools/mpremote/requirements.txt
command_output=$(python3 ${MPREMOTE} fs 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."
Expand All @@ -275,15 +276,15 @@ if [ ${fs} -eq 1 ]; then
if [ ${afs} -eq 1 ]; then

echo " saving test_fs_medium_file.txt to FS - (size : 500KB) "
command_output=$(python ${MPREMOTE} fs cp test_inputs/test_fs_medium_file.txt :/)
command_output=$(python3 ${MPREMOTE} fs 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."
exit 1
fi

echo " saving test_fs_large_file.txt to FS - (size : 1MB) "
command_output=$(python ${MPREMOTE} fs cp test_inputs/test_fs_large_file.txt :/)
command_output=$(python3 ${MPREMOTE} fs 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."
Expand Down

0 comments on commit a11dd50

Please sign in to comment.