diff options
Diffstat (limited to 'qa/qa/support/run.rb')
-rw-r--r-- | qa/qa/support/run.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/qa/support/run.rb b/qa/qa/support/run.rb index da82c09462d..cde8a0dba21 100644 --- a/qa/qa/support/run.rb +++ b/qa/qa/support/run.rb @@ -21,11 +21,11 @@ module QA end end - def run(command_str, env: [], max_attempts: 1, log_prefix: '') + def run(command_str, env: [], max_attempts: 1, sleep_internal: 0, log_prefix: '') command = [*env, command_str, '2>&1'].compact.join(' ') result = nil - repeat_until(max_attempts: max_attempts, raise_on_failure: false) do + repeat_until(max_attempts: max_attempts, sleep_interval: sleep_internal, raise_on_failure: false) do Runtime::Logger.debug "#{log_prefix}pwd=[#{Dir.pwd}], command=[#{command}]" output, status = Open3.capture2e(command) output.chomp! |