summaryrefslogtreecommitdiff
path: root/src/buildstream/testing
diff options
context:
space:
mode:
authorAlexFazakas <alex.fazakas97@gmail.com>2019-07-02 15:43:26 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-02 15:43:26 +0000
commit5a1afb26cd9f70b8ef719966c24baabe8ac0816b (patch)
tree93cfddfaad042f42a7408d54c241f99ff376db19 /src/buildstream/testing
parent2219874cdca548dd7f164ef3a0f77f5affeea2b0 (diff)
downloadbuildstream-5a1afb26cd9f70b8ef719966c24baabe8ac0816b.tar.gz
runcli.py: Don't set project to 'None'
Calling runcli with project set to None results in setting the directory to the string 'None'. Instead, only set it when the given project argument is not None.
Diffstat (limited to 'src/buildstream/testing')
-rw-r--r--src/buildstream/testing/runcli.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buildstream/testing/runcli.py b/src/buildstream/testing/runcli.py
index a77deeb9e..8e9065478 100644
--- a/src/buildstream/testing/runcli.py
+++ b/src/buildstream/testing/runcli.py
@@ -322,7 +322,6 @@ class Cli():
# We may have been passed e.g. pathlib.Path or py.path
args = [str(x) for x in args]
- project = str(project)
options = self.default_options + options
@@ -339,7 +338,7 @@ class Cli():
bst_args += ['--config', config_file]
if project:
- bst_args += ['--directory', project]
+ bst_args += ['--directory', str(project)]
for option, value in options:
bst_args += ['--option', option, value]