We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78ac6b4 commit ea7df63Copy full SHA for ea7df63
helpers/lib
@@ -46,7 +46,7 @@ function retry {
46
fi
47
48
local count=0
49
- until "$@"; do
+ until eval "$@"; do
50
# Command failed, otherwise until would have skipped the loop
51
52
# Store return code so it can be reported to the user
tests-for-this-repo/helpers.bats
@@ -111,4 +111,8 @@ teardown(){
111
assert [ ! -e "${temp_dir}/appendfile" ]
112
}
113
114
-
+@test "retry succeeds with compound statements" {
115
+ run retry 3 "true && date >> ${afile}"
116
+ assert_success
117
+ assert_equal $(wc -l <${afile}) 1
118
+}
0 commit comments