diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-02-27 15:14:35 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-02-27 15:52:46 +0100 |
commit | 1fb7b8c4f84200bfe6f4ec03cabe247030f84643 (patch) | |
tree | 329e6099122d76fda9f0ad8532d9dd371c7a3f25 /test | |
parent | 4f1601cb18f799dce795e3d0fda5073ab3c61195 (diff) | |
download | justbuild-1fb7b8c4f84200bfe6f4ec03cabe247030f84643.tar.gz |
with_{remote,serve}: honor TIMEOUT_SCALE
Especially the end-to-end tests that use "remote" end points can grow
large; therefore, honor the configuration variable TIMEOUT_SCALE, to
allow the author to specify that this test takes more time.
Diffstat (limited to 'test')
-rw-r--r-- | test/end-to-end/EXPRESSIONS | 6 | ||||
-rw-r--r-- | test/end-to-end/RULES | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/end-to-end/EXPRESSIONS b/test/end-to-end/EXPRESSIONS index 632c0b21..345b6069 100644 --- a/test/end-to-end/EXPRESSIONS +++ b/test/end-to-end/EXPRESSIONS @@ -11,6 +11,7 @@ , "transition" , "TEST_COMPATIBLE_REMOTE" , "TEST_REMOTE_EXECUTION" + , "TIMEOUT_SCALE" ] , "imports": { "artifacts_list": ["@", "rules", "", "field_artifacts_list"] @@ -127,6 +128,8 @@ , "inputs": {"type": "var", "name": "inputs"} , "cmd": {"type": "var", "name": "cmd"} , "env": {"type": "var", "name": "test_env"} + , "timeout scaling": + {"type": "var", "name": "TIMEOUT_SCALE", "default": 1.0} , "may_fail": ["test"] , "fail_message": { "type": "join" @@ -151,6 +154,8 @@ , "inputs": {"type": "var", "name": "inputs"} , "cmd": {"type": "var", "name": "cmd"} , "env": {"type": "var", "name": "test_env"} + , "timeout scaling": + {"type": "var", "name": "TIMEOUT_SCALE", "default": 1.0} , "may_fail": ["test"] , "no_cache": ["test"] , "fail_message": @@ -181,6 +186,7 @@ , "transition" , "TEST_COMPATIBLE_REMOTE" , "TEST_REMOTE_EXECUTION" + , "TIMEOUT_SCALE" ] , "imports": {"action": "test-action"} , "expression": diff --git a/test/end-to-end/RULES b/test/end-to-end/RULES index 2146d1ac..14a9aa95 100644 --- a/test/end-to-end/RULES +++ b/test/end-to-end/RULES @@ -12,6 +12,7 @@ , "TEST_ENV" , "TEST_COMPATIBLE_REMOTE" , "TEST_REMOTE_EXECUTION" + , "TIMEOUT_SCALE" ] , "field_doc": { "test": @@ -50,6 +51,8 @@ , "If the remote execution service requires additional arguments, they can be listed" , "in the list of strings named \"args\"." ] + , "TIMEOUT_SCALE": + ["Factor on how to scale the timeout for this test. Defaults to 1.0."] } , "tainted": ["test"] , "artifacts_doc": @@ -222,6 +225,7 @@ , "RUNS_PER_TEST" , "TEST_ENV" , "TEST_COMPATIBLE_REMOTE" + , "TIMEOUT_SCALE" ] , "field_doc": { "test": @@ -263,6 +267,8 @@ , "TEST_ENV": ["The environment for executing the test runner."] , "TEST_COMPATIBLE_REMOTE": ["If true, run the remote execution in compatible mode."] + , "TIMEOUT_SCALE": + ["Factor on how to scale the timeout for this test. Defaults to 1.0."] } , "tainted": ["test"] , "artifacts_doc": |