Skip to content
Prev Previous commit
Next Next commit
WIP: use eval and next unless
  • Loading branch information
jgfoster committed Jul 1, 2022
commit 012f5bb99a1a37d7ed067f5656e2ca312fb20ab6
3 changes: 1 addition & 2 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ jobs:
cd SampleProjects/SharedLibrary
bundle install
bundle exec ensure_arduino_installation.rb
bundle exec arduino_ci.rb --skip-examples-compilation
status = $?
status = eval "bundle exec arduino_ci.rb --skip-examples-compilation"
echo "Status = $status"
if [ $status -ne 1 ]; then
exit 1
Expand Down
4 changes: 2 additions & 2 deletions SampleProjects/SharedLibrary/src/SharedLibrary.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "SharedLibrary.h"

void main() {
return foo; // unrecognized variable
int main() {
return foo; // 'foo' was not declared in this scope
}
4 changes: 1 addition & 3 deletions exe/arduino_ci.rb
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,7 @@ def perform_unit_tests(cpp_library, file_config)
end
next got_shared_library
end
if !got_shared_library
next
end
next unless got_shared_library
# now build and run each test using the shared library build above
config.allowable_unittest_files(cpp_library.test_files).each do |unittest_path|
unittest_name = unittest_path.basename.to_s
Expand Down