mirror of
https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials.git
synced 2024-11-03 15:40:21 +00:00
Fix return code propagation of checks
This commit is contained in:
parent
2993c8143c
commit
b363bc0917
@ -15,7 +15,10 @@ def clippy_all
|
||||
|
||||
Dir.chdir(x) do
|
||||
puts "Clippy: #{x}"
|
||||
system('make clippy')
|
||||
unless system('make clippy')
|
||||
puts "\n\nClippy failed!"
|
||||
exit(1) # Exit with error code
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -21,7 +21,10 @@ def fmt_all(check = false)
|
||||
|
||||
Dir.chdir(x) do
|
||||
puts "Format #{x}"
|
||||
system("cargo fmt #{args}")
|
||||
unless system("cargo fmt #{args}")
|
||||
puts "\n\nFmt check failed!"
|
||||
exit(1) # Exit with error code
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user