summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbst-marge-bot <marge-bot@buildstream.build>2020-04-24 08:35:48 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2020-04-24 08:35:48 +0000
commitbacc060cfcf32cdb696ce1a3ef195ea9bed0d8c1 (patch)
tree53a5dda9c50eff0a0659e370776e1371a62650bd
parent63b9c7ea11da4e4fb19d6822649116769d224963 (diff)
parent350880fbb36a6f6bc4704a589309e1239a88fb7d (diff)
downloadbuildstream-bacc060cfcf32cdb696ce1a3ef195ea9bed0d8c1.tar.gz
Merge branch 'juerg/test-timeouts' into 'master'
Increase test timeouts See merge request BuildStream/buildstream!1884
-rw-r--r--setup.cfg2
-rw-r--r--tests/format/variables.py2
-rw-r--r--tests/testutils/constants.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/setup.cfg b/setup.cfg
index 8b3d60388..7d3599e14 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -8,7 +8,7 @@ tag_regex = *.*.*
parentdir_prefix = BuildStream-
[tool:pytest]
-addopts = --verbose --basetemp ./tmp --durations=20 --timeout=900
+addopts = --verbose --basetemp ./tmp --durations=20 --timeout=1800
norecursedirs = src tests/integration/project integration-cache tmp __pycache__ .eggs
python_files = tests/*/*.py
env =
diff --git a/tests/format/variables.py b/tests/format/variables.py
index 11a34ee07..ecc1e2b12 100644
--- a/tests/format/variables.py
+++ b/tests/format/variables.py
@@ -61,7 +61,7 @@ def test_missing_variable(cli, datafiles, element):
result.assert_main_error(ErrorDomain.LOAD, LoadErrorReason.UNRESOLVED_VARIABLE)
-@pytest.mark.timeout(3, method="signal")
+@pytest.mark.timeout(15, method="signal")
@pytest.mark.datafiles(os.path.join(DATA_DIR, "cyclic_variables"))
def test_cyclic_variables(cli, datafiles):
print_warning("Performing cyclic test, if this test times out it will " + "exit the test sequence")
diff --git a/tests/testutils/constants.py b/tests/testutils/constants.py
index e14624143..e95d4428e 100644
--- a/tests/testutils/constants.py
+++ b/tests/testutils/constants.py
@@ -5,11 +5,11 @@
#
# Use this for operations that are expected to finish within a short amount of
# time. Like `bst init`, `bst show` on a small project.
-PEXPECT_TIMEOUT_SHORT = 5
+PEXPECT_TIMEOUT_SHORT = 30
# Timeout for longer interactive operations (in seconds).
#
# Use this for operations that are expected to take longer amounts of time,
# like `bst build` on a small project.
-PEXPECT_TIMEOUT_LONG = 60
+PEXPECT_TIMEOUT_LONG = 300