mirror of
https://github.com/vlang/v.git
synced 2025-09-11 16:36:20 -04:00
ci: fmt macos_ci.vsh
This commit is contained in:
parent
48e3cd1beb
commit
7ee7fb7664
@ -71,16 +71,15 @@ fn run_step(step Command) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Helper function to execute commands and exit if they fail
|
||||
fn exec(command string) {
|
||||
result := os.execute(command)
|
||||
//or {
|
||||
//eprintln('Command failed: $command\nError: $err')
|
||||
//exit(1)
|
||||
// or {
|
||||
// eprintln('Command failed: $command\nError: $err')
|
||||
// exit(1)
|
||||
//}
|
||||
if result.exit_code != 0 {
|
||||
eprintln('Command failed with code ${result.exit_code}: $command\nOutput: ${result.output}')
|
||||
eprintln('Command failed with code ${result.exit_code}: ${command}\nOutput: ${result.output}')
|
||||
exit(1)
|
||||
}
|
||||
println(result.output)
|
||||
@ -208,5 +207,3 @@ fn test_readline() {
|
||||
fn test_vlib_skip_unused() {
|
||||
exec('v -skip-unused test vlib/builtin/ vlib/math vlib/flag/ vlib/os/ vlib/strconv/')
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user