Skip to content

Commit 61f8214

Browse files
authored
Merge pull request #44 from maage/bash-unit-1
bugfix: bash: handle bash unit tests
2 parents c0a0451 + 39616f7 commit 61f8214

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ctf/analysis/BashAnalysis.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def __init__(self, file_record):
2121

2222
@staticmethod
2323
def can_analyse(filepath):
24+
if re.match(r"^tests/unit/bash/\w+\.sh$", filepath):
25+
return False
2426
if re.match(r"^(?!shared/).*/bash/\w+\.sh$", filepath):
2527
return True
2628
return False

0 commit comments

Comments
 (0)