mirror of
https://github.com/vlang/v.git
synced 2025-09-10 07:47:20 -04:00
ci: fmt macos_ci.vsh
This commit is contained in:
parent
48e3cd1beb
commit
7ee7fb7664
@ -71,7 +71,6 @@ fn run_step(step Command) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Helper function to execute commands and exit if they fail
|
// Helper function to execute commands and exit if they fail
|
||||||
fn exec(command string) {
|
fn exec(command string) {
|
||||||
result := os.execute(command)
|
result := os.execute(command)
|
||||||
@ -80,7 +79,7 @@ fn exec(command string) {
|
|||||||
// exit(1)
|
// exit(1)
|
||||||
//}
|
//}
|
||||||
if result.exit_code != 0 {
|
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)
|
exit(1)
|
||||||
}
|
}
|
||||||
println(result.output)
|
println(result.output)
|
||||||
@ -208,5 +207,3 @@ fn test_readline() {
|
|||||||
fn test_vlib_skip_unused() {
|
fn test_vlib_skip_unused() {
|
||||||
exec('v -skip-unused test vlib/builtin/ vlib/math vlib/flag/ vlib/os/ vlib/strconv/')
|
exec('v -skip-unused test vlib/builtin/ vlib/math vlib/flag/ vlib/os/ vlib/strconv/')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user