diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-05-31 14:34:28 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-05-31 14:34:28 +0200 |
commit | 109e84eaf3375e64671aab00d4b7c5ce059c8620 (patch) | |
tree | b217e124431a5712eb160de9ca4fd9448538bf55 | |
parent | a7404b28cc40881377c7d681cfdb322daf2ba366 (diff) | |
parent | 970956cf14026dcc863befe38a9331a8065b91b3 (diff) | |
download | rules-cc-109e84eaf3375e64671aab00d4b7c5ce059c8620.tar.gz |
Merge commit '970956cf14026dcc863befe38a9331a8065b91b3' into HEAD
-rw-r--r-- | rules/shell/test/EXPRESSIONS | 6 | ||||
-rw-r--r-- | rules/shell/test/RULES | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/rules/shell/test/EXPRESSIONS b/rules/shell/test/EXPRESSIONS index ea36b32..a1e3137 100644 --- a/rules/shell/test/EXPRESSIONS +++ b/rules/shell/test/EXPRESSIONS @@ -1,6 +1,7 @@ { "test-action": { "vars": [ "TEST_ENV" + , "TIMEOUT_SCALE" , "ATTEMPT" , "name" , "test.sh" @@ -170,6 +171,8 @@ { "type": "join" , "$1": ["shell test ", {"type": "var", "name": "name"}, " failed"] } + , "timeout scaling": + {"type": "var", "name": "TIMEOUT_SCALE", "default": 1.0} } , "else": { "type": "ACTION" @@ -189,6 +192,8 @@ , ")" ] } + , "timeout scaling": + {"type": "var", "name": "TIMEOUT_SCALE", "default": 1.0} } } } @@ -196,6 +201,7 @@ , "test-result": { "vars": [ "TEST_ENV" + , "TIMEOUT_SCALE" , "name" , "test.sh" , "keep" diff --git a/rules/shell/test/RULES b/rules/shell/test/RULES index 19f859f..b952648 100644 --- a/rules/shell/test/RULES +++ b/rules/shell/test/RULES @@ -2,7 +2,8 @@ { "doc": ["Shell test, given by a test script"] , "target_fields": ["deps", "test"] , "string_fields": ["keep", "name"] - , "config_vars": ["ARCH", "HOST_ARCH", "RUNS_PER_TEST", "TEST_ENV"] + , "config_vars": + ["ARCH", "HOST_ARCH", "RUNS_PER_TEST", "TEST_ENV", "TIMEOUT_SCALE"] , "field_doc": { "test": [ "The shell script for the test, launched with sh." @@ -37,6 +38,8 @@ , "If set, no test action will be taken from cache." ] , "TEST_ENV": ["Additional environment for executing the test runner."] + , "TIMEOUT_SCALE": + ["Factor on how to scale the timeout for this test. Defaults to 1.0."] } , "tainted": ["test"] , "artifacts_doc": |