Skip to content

Commit

Permalink
tests/psoc6: Fixing paths.
Browse files Browse the repository at this point in the history
Signed-off-by: NikhitaR-IFX <[email protected]>
  • Loading branch information
NikhitaR-IFX committed Feb 21, 2024
1 parent cff28ff commit 8ac1561
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
8 changes: 5 additions & 3 deletions tests/psoc6/test_scripts/fs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import subprocess
import sys
import os

device = sys.argv[1]
test_type = sys.argv[2]
Expand All @@ -11,8 +12,8 @@
remote_directory_path = "/"

# out and exp file paths
basic_test_op_fp = "./psoc6/test_scripts/results/fs_basic.py.out"
adv_test_op_fp = "./psoc6/test_scripts/results/fs_adv.py.out"
basic_test_op_fp = "./psoc6/test_scripts/fs_basic.py.out"
adv_test_op_fp = "./psoc6/test_scripts/fs_adv.py.out"
exp_basic_op_fp = "./psoc6/test_scripts/fs_basic.py.exp"
exp_adv_op_fp = "./psoc6/test_scripts/fs_adv.py.exp"

Expand All @@ -33,7 +34,6 @@ def exec(cmd, op_file_path="null"):
if output.returncode == 0:
subprocess.run(f"{cmd} {op_file_path}", shell=True, capture_output=False)
else:
print(op_file_path)
with open(op_file_path, "a") as file:
subprocess.call(cmd, shell=True, stdout=file)

Expand All @@ -58,6 +58,7 @@ def fs_basic_test():
exec(mpr_rm, "test_fs_small_file.txt")
exec(mpr_small_file_cp, basic_test_op_fp)
validate_test(basic_test_op_fp, exp_basic_op_fp)
os.remove(basic_test_op_fp)


def fs_adv_test():
Expand All @@ -72,6 +73,7 @@ def fs_adv_test():
exec(mpr_rm, "test_fs_large_file.txt")
exec(mpr_large_file_cp, adv_test_op_fp)
validate_test(adv_test_op_fp, exp_adv_op_fp)
os.remove(adv_test_op_fp_test_op_fp)


if test_type == "0":
Expand Down
12 changes: 0 additions & 12 deletions tests/psoc6/test_scripts/results/fs_adv.py.out

This file was deleted.

7 changes: 0 additions & 7 deletions tests/psoc6/test_scripts/results/fs_basic.py.out

This file was deleted.

0 comments on commit 8ac1561

Please sign in to comment.