0
0
mirror of https://github.com/thegeeklab/retry.git synced 2024-06-02 18:29:39 +02:00
retry/retry.bats

15 lines
259 B
Plaintext
Raw Normal View History

2022-11-02 21:34:28 +01:00
#!/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" ]
}