mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 18:51:31 +00:00
Make subprocess calls fail if something goes wrong
This commit is contained in:
parent
d306d0e484
commit
fb2beb470f
@ -84,6 +84,7 @@ class SnapshotProvider:
|
||||
return stdout_bytes.decode().rstrip('\n')
|
||||
|
||||
def _run(self, *args, **kwargs):
|
||||
kwargs['check'] = True
|
||||
if 'env' not in kwargs:
|
||||
kwargs['env'] = self.gitenv
|
||||
return run(*args, **kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user