diff options
author | Jürg Billeter <j@bitron.ch> | 2019-03-14 09:52:46 +0000 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-03-16 07:24:58 +0100 |
commit | ab708fb68d85a633b098c590bd10adf50299cd03 (patch) | |
tree | a365b9eaa37177bf45e8095212bd1bbf56d7f8a8 | |
parent | 142ef9cdc6ed3c5b0e91ca450dfcd608822e0a60 (diff) | |
download | buildstream-ab708fb68d85a633b098c590bd10adf50299cd03.tar.gz |
_frontend/app.py: Fail on missing buildtree in failure handler
In the interactive failure handler we should never enter the interactive
shell if the buildtree is missing (due to cache-buildtrees=never).
-rw-r--r-- | buildstream/_frontend/app.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_frontend/app.py b/buildstream/_frontend/app.py index 329f9a2c6..c1a5e57b7 100644 --- a/buildstream/_frontend/app.py +++ b/buildstream/_frontend/app.py @@ -602,7 +602,7 @@ class App(): click.echo("\nDropping into an interactive shell in the failed build sandbox\n", err=True) try: prompt = self.shell_prompt(element) - self.stream.shell(element, Scope.BUILD, prompt, isolate=True, usebuildtree=True) + self.stream.shell(element, Scope.BUILD, prompt, isolate=True, usebuildtree='always') except BstError as e: click.echo("Error while attempting to create interactive shell: {}".format(e), err=True) elif choice == 'log': |