Skip to content

Commit d236e7e

Browse files
committed
making P2IM unit test verification script independent from the directory it is invoked from
1 parent c8d181a commit d236e7e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

01-access-modeling-for-fuzzing/p2im-unittests/check_results.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
from fuzzware_pipeline.naming_conventions import trace_paths_for_trace, input_for_trace_path
2121
import subprocess
2222

23+
DIR = os.path.dirname(os.path.realpath(__file__))
24+
2325
NUM_TRACE_ALL = 999999
2426

2527
def parse_groundtruth_csv(file_path):
@@ -74,7 +76,7 @@ def main(file_path):
7476
for elf_path, test_type, bb_text, comment in entries:
7577
print("elf_path:", elf_path)
7678
elf_name = os.path.basename(elf_path)
77-
target_dir = elf_path.split(".")[0]
79+
target_dir = os.path.join(DIR, elf_path.split(".")[0])
7880

7981
config_path = os.path.join(target_dir, "config.yml")
8082
proj_dir = os.path.join(target_dir, "fuzzware-project")

0 commit comments

Comments
 (0)