summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-11-30 18:20:57 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-12-05 18:59:52 +0000
commitcf78a56ccf714ffed2f8ebe2125b0de3faecdfca (patch)
tree500a0ed40a4dc10b31a1dbee8b5586729001237d
parentd04c8289b00b26dd54022b5fc50a66487e85fd83 (diff)
downloadbuildstream-cf78a56ccf714ffed2f8ebe2125b0de3faecdfca.tar.gz
tests/testutils/runcli.py: Always run with --no-colors
Pytest defaults to capturing stdout, which has the side effect of making BuildStream realise it's not outputting to a terminal and disabling its ANSI colour code output. If you pass `--capture=no` then BuildStream detects the terminal and the colour codes are emitted, which breaks all of the tests which match on specific output from `bst`. Forcefully disable colours to fix that.
-rw-r--r--tests/testutils/runcli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testutils/runcli.py b/tests/testutils/runcli.py
index f165232dc..9cce20f7a 100644
--- a/tests/testutils/runcli.py
+++ b/tests/testutils/runcli.py
@@ -62,7 +62,7 @@ class Cli():
args = []
with ExitStack() as stack:
- bst_args = []
+ bst_args = ['--no-colors']
if silent:
bst_args += ['--no-verbose']