Skip to content

Commit 7bcf231

Browse files
committed
tests/ports/psoc6: Debug fs test failure.
Signed-off-by: NikhitaR-IFX <nikhita.rajasekhar@infineon.com>
1 parent 31a84c8 commit 7bcf231

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • tests/ports/psoc6/mp_custom

tests/ports/psoc6/mp_custom/fs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
curr_dir = os.getcwd()
1717
print(f"Current directory: {curr_dir}")
1818

19+
1920
# List of mpremote commands
2021
mpr_connect = f"../tools/mpremote/mpremote.py connect {device}"
2122
mpr_run_script = ""
@@ -157,8 +158,12 @@ def copy_files(input_cp_files):
157158

158159
cp_cmd = f"{mpr_connect} {mpr_run_script} {cp_sub_cmd}"
159160

161+
ls_cmd = f"cd ./ports/psoc6/inputs/ && ls -l"
162+
160163
logger.debug(f"cp_files command: {cp_cmd}")
161164

165+
print("Check if file is available: ", subprocess.run(ls_cmd, shell=True, capture_output=True))
166+
162167
print("Copying files...", subprocess.run(cp_cmd, shell=True, capture_output=True))
163168

164169

0 commit comments

Comments
 (0)