Skip to content

Commit

Permalink
fix windows paths, end test thread
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrj committed Nov 18, 2023
1 parent c0c7fe5 commit af90bc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ def byte_to_bools(byte, num_bools=8):

return tuple(bool_list)


def test_regexp(expr):
teststring='abc'
try:
Expand Down Expand Up @@ -492,7 +491,7 @@ def extract_custom_data(self):

expressions,use_smin,smin_int,use_smax,smax_int,executable,timeout,crc = self_db_cde_list[rule_nr]

full_file_path = normpath(abspath(sep.join([scan_path,subpath])))
full_file_path = normpath(abspath(sep.join([scan_path,subpath]))).replace('/',sep)

size = list_ref[4]

Expand Down Expand Up @@ -725,6 +724,7 @@ def test_cde(self,executable,timeout,file_to_test):
cde_run_list = executable + [file_to_test]

cd_ok,output = exe.run(cde_run_list,timeout)
exe.end()

return cd_ok,output

Expand Down
3 changes: 2 additions & 1 deletion src/librer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2731,7 +2731,8 @@ def cde_test(self,e):
except:
timeout_int = None

file_to_test = res
file_to_test = res.replace('/',sep)
#print('file_to_test:',file_to_test)

info = ' '.join(self.CDE_executable_var_list[e].get().split() + [file_to_test]) + ( ('\ntimeout:' + str(timeout_int)) if timeout_int else '')

Expand Down

0 comments on commit af90bc0

Please sign in to comment.