Skip to content

Commit 6eee595

Browse files
committed
tests/ports/psoc6: Debug fs test failure.
Signed-off-by: NikhitaR-IFX <nikhita.rajasekhar@infineon.com>
1 parent 8f2e18a commit 6eee595

File tree

1 file changed

+7
-13
lines changed
  • tests/ports/psoc6/mp_custom

1 file changed

+7
-13
lines changed

tests/ports/psoc6/mp_custom/fs.py

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,15 @@
77
logger = logging.getLogger("fs")
88
logging.basicConfig(format="%(levelname)s: %(message)s", encoding="utf-8", level=logging.WARNING)
99

10-
'''device = sys.argv[1]
10+
device = sys.argv[1]
1111
test_type = sys.argv[2]
12-
mem_type = sys.argv[3]'''
12+
mem_type = sys.argv[3]
1313

14-
device = '/dev/ttyACM3'
15-
test_type = "basic"
16-
mem_type = "flash"
17-
18-
# tests inputs and script paths
19-
test_input_dir = "/home/nikhita/MPY/micropython/tests/ports/psoc6/inputs"
20-
test_script_dir = "/home/nikhita/MPY/micropython/tests/ports/psoc6/mp_custom"
14+
test_input_dir = "./ports/psoc6/inputs"
15+
test_script_dir = "./ports/psoc6/mp_custom"
2116

2217
# List of mpremote commands
23-
mpr_connect = f"/home/nikhita/MPY/micropython/tools/mpremote/mpremote.py connect {device}"
18+
mpr_connect = f"../tools/mpremote/mpremote.py connect {device}"
2419
mpr_run_script = ""
2520

2621
# Remote directory path
@@ -187,10 +182,9 @@ def validate_test(files, file_sizes):
187182

188183

189184
def cp_files_test(input_files, input_files_size):
190-
# rm_files_if_exist(input_files)
185+
rm_files_if_exist(input_files)
191186
copy_files(input_files)
192-
# time.sleep(1)
193-
# validate_test(input_files, input_files_size)
187+
validate_test(input_files, input_files_size)
194188

195189

196190
def large_file_tests(device, test_type, mem_type):

0 commit comments

Comments
 (0)