We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04fa574 commit 899ed76Copy full SHA for 899ed76
lib/arduino_ci/cpp_library.rb
@@ -27,12 +27,13 @@ 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
+ cpp_files_in(@base_dir).reject { |p| File.dirname(p).include?(tests_dir) }
37
38
39
# CPP files that are part of the arduino mock library we're providing
0 commit comments