File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,17 @@ def initialize(base_dir)
27
27
end
28
28
29
29
def cpp_files_in ( some_dir )
30
- Find . find ( some_dir ) . select { |path | CPP_EXTENSIONS . include? ( File . extname ( path ) ) }
30
+ real = File . realpath ( some_dir )
31
+ Find . find ( real ) . select { |path | CPP_EXTENSIONS . include? ( File . extname ( path ) ) }
31
32
end
32
33
33
34
# CPP files that are part of the project library under test
34
35
def cpp_files
35
- cpp_files_in ( @base_dir ) . reject { |p | p . start_with? ( tests_dir + File ::SEPARATOR ) }
36
+ real_tests_dir = File . realpath ( tests_dir )
37
+ cpp_files_in ( @base_dir ) . reject do |p |
38
+ next true if File . dirname ( p ) . include? ( tests_dir )
39
+ next true if File . dirname ( p ) . include? ( real_tests_dir )
40
+ end
36
41
end
37
42
38
43
# CPP files that are part of the arduino mock library we're providing
You can’t perform that action at this time.
0 commit comments