summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-06-05 16:57:32 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-06-06 10:44:56 +0000
commitd74774b22081011ee4912a087709e2115209c575 (patch)
treeb934d90239776940bf8cbb1e92ac2d24b1907881
parent0e1b28fd6804bf323b5b552c7de237d6dd455d38 (diff)
downloadbuildstream-d74774b22081011ee4912a087709e2115209c575.tar.gz
tests/integration/shell: Simplify if-else assignment
Pylint was complaining about it.
-rw-r--r--tests/integration/shell.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/integration/shell.py b/tests/integration/shell.py
index a4f9e4f7c..4f08504c9 100644
--- a/tests/integration/shell.py
+++ b/tests/integration/shell.py
@@ -242,10 +242,7 @@ def test_host_files_missing(cli, datafiles, optional):
project = str(datafiles)
ponyfile = os.path.join(project, 'files', 'shell-mount', 'horsy.txt')
- if optional == "optional":
- option = True
- else:
- option = False
+ option = (optional == "optional")
# Assert that we did successfully run something in the shell anyway
result = execute_shell(cli, project, ['echo', 'Hello'], config={