diff options
author | Chandan Singh <chandan@chandansingh.net> | 2019-11-12 00:47:14 +0000 |
---|---|---|
committer | Chandan Singh <chandan@chandansingh.net> | 2019-12-05 13:46:40 +0000 |
commit | 23423f6bd1572003fbb1af571bf9a9758abdd79c (patch) | |
tree | c8be208544ec12ff78f5cc696861cfd3406406a8 /tests/testutils/constants.py | |
parent | b0375014d5c97c484b6704b87140355de3d7701a (diff) | |
download | buildstream-23423f6bd1572003fbb1af571bf9a9758abdd79c.tar.gz |
Add tests for interactive `bst init`
Add tests for interactive `bst init` command using
[pexpect](https://pexpect.readthedocs.io).
Diffstat (limited to 'tests/testutils/constants.py')
-rw-r--r-- | tests/testutils/constants.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/testutils/constants.py b/tests/testutils/constants.py new file mode 100644 index 000000000..e14624143 --- /dev/null +++ b/tests/testutils/constants.py @@ -0,0 +1,15 @@ +# Constants used during BuildStream tests. + + +# Timeout for short interactive operations (in seconds). +# +# 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 + + +# 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 |