Fix return code propagation of checks

pull/37/head
Andre Richter 5 years ago
parent 2993c8143c
commit b363bc0917
No known key found for this signature in database
GPG Key ID: 2116C1AB102F615E

@ -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…
Cancel
Save