We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b10c861 commit fe5f4f9Copy full SHA for fe5f4f9
CHANGELOG.md
@@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
22
23
### Fixed
24
- Don't define `ostream& operator<<(nullptr_t)` if already defined by Apple
25
+- `CppLibrary.in_tests_dir?` no longer produces an error if there is no tests directory
26
27
### Security
28
lib/arduino_ci/cpp_library.rb
@@ -122,6 +122,8 @@ def vendor_bundle?(path)
122
# @param path [Pathname] The path to check
123
# @return [bool]
124
def in_tests_dir?(path)
125
+ return false unless tests_dir.exist?
126
+
127
tests_dir_aliases = [tests_dir, tests_dir.realpath]
128
# we could do this but some rubies don't return an enumerator for ascend
129
# path.ascend.any? { |part| tests_dir_aliases.include?(part) }
0 commit comments