diff options
Diffstat (limited to 'qa/qa/support/run.rb')
-rw-r--r-- | qa/qa/support/run.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qa/qa/support/run.rb b/qa/qa/support/run.rb index a91e7dfd2cb..242293f9eef 100644 --- a/qa/qa/support/run.rb +++ b/qa/qa/support/run.rb @@ -15,6 +15,10 @@ module QA def success? exitstatus == 0 && !response.include?('Error encountered') end + + def to_i + response.to_i + end end def run(command_str, env: [], max_attempts: 1, log_prefix: '') |