Fix return code propagation of checks

This commit is contained in:
Andre Richter 2019-11-05 21:29:15 +01:00
parent 2993c8143c
commit b363bc0917
No known key found for this signature in database
GPG Key ID: 2116C1AB102F615E
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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