mirror of
https://github.com/thegeeklab/retry.git
synced 2024-11-21 23:20:40 +00:00
15 lines
266 B
Bash
15 lines
266 B
Bash
#!/usr/bin/env bats
|
|
|
|
@test "retry echo should work" {
|
|
run ./retry 'echo "u work good"'
|
|
|
|
[ "$output" = "u work good" ]
|
|
}
|
|
|
|
@test "retry false should fail" {
|
|
run ./retry -t 1 'echo "y u no work"; false'
|
|
|
|
[ "$status" -ne 0 ]
|
|
[[ "$output" =~ "y u no work" ]]
|
|
}
|