mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
tools: make cmd/tools/vretry_test.v independent from the presence of git (fix issue #23398)
This commit is contained in:
parent
89d405ec52
commit
3523c44f42
2 changed files with 39 additions and 12 deletions
13
cmd/tools/check_retry.vsh
Normal file
13
cmd/tools/check_retry.vsh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env -S v -raw-vsh-tmp-prefix tmp
|
||||
|
||||
// This script is used by cmd/tools/vretry_test.v, to check that the `v retry`
|
||||
// subcommand works as expected, without relying on external commands like
|
||||
// `git`, or on non portable ones like `true`/`false` or `echo`.
|
||||
|
||||
fn main() {
|
||||
args := arguments()#[1..]
|
||||
println(args)
|
||||
if args == ['too', 'many', 'arguments'] {
|
||||
exit(1)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue