We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04fa574 commit a574146Copy full SHA for a574146
lib/arduino_ci/cpp_library.rb
@@ -27,12 +27,17 @@ def initialize(base_dir)
27
end
28
29
def cpp_files_in(some_dir)
30
- Find.find(some_dir).select { |path| CPP_EXTENSIONS.include?(File.extname(path)) }
+ real = File.realpath(some_dir)
31
+ Find.find(real).select { |path| CPP_EXTENSIONS.include?(File.extname(path)) }
32
33
34
# CPP files that are part of the project library under test
35
def cpp_files
- 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
41
42
43
# CPP files that are part of the arduino mock library we're providing
0 commit comments