Add timeout to the methods of Linux class

This patch adds argument timeout to methods runCommand and putFile,
which allows to set a custom timeout

Change-Id: I108665e8ef0ca33401b9fcf53cd8d59837fdb447
Closes-bug: #1588903
This commit is contained in:
Omar Shykhkerimov
2016-06-06 15:15:51 +03:00
committed by Kirill Zaitsev
parent eb1d5e4ef1
commit 904aa451f1
2 changed files with 12 additions and 2 deletions

View File

@@ -37,6 +37,9 @@ Methods:
- ignoreErrors:
Contract: $.bool().notNull()
Default: false
- timeout:
Contract: $.int()
Default: null
Body:
- $resources: new(sys:Resources)
@@ -52,7 +55,7 @@ Methods:
captureStdout => $captureStdout,
verifyExitcode => not $ignoreErrors
))
- Return: $agent.call($template, $resources)
- Return: $agent.call($template, $resources, $timeout)
putFile:
Usage: Static
@@ -69,6 +72,9 @@ Methods:
- ignoreErrors:
Contract: $.bool().notNull()
Default: false
- timeout:
Contract: $.int()
Default: null
Body:
- $data: base64encode($fileContent)
@@ -84,4 +90,4 @@ Methods:
planName => $planName,
verifyExitcode => not $ignoreErrors
))
- Return: $agent.call($template, $resources)
- Return: $agent.call($template, $resources, $timeout)

View File

@@ -0,0 +1,4 @@
---
features:
- timeout parameter was added to the methods of Linux class.