mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 23:11:33 +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')
|
return stdout_bytes.decode().rstrip('\n')
|
||||||
|
|
||||||
def _run(self, *args, **kwargs):
|
def _run(self, *args, **kwargs):
|
||||||
|
kwargs['check'] = True
|
||||||
if 'env' not in kwargs:
|
if 'env' not in kwargs:
|
||||||
kwargs['env'] = self.gitenv
|
kwargs['env'] = self.gitenv
|
||||||
return run(*args, **kwargs)
|
return run(*args, **kwargs)
|
||||||
|
Loading…
Reference in New Issue
Block a user