From fb2beb470f920b38d9242540cabf5fac9a9942bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 18 Jul 2018 15:50:35 +0200 Subject: [PATCH] Make subprocess calls fail if something goes wrong --- lib/tfw/components/snapshot_provider.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tfw/components/snapshot_provider.py b/lib/tfw/components/snapshot_provider.py index 1a11c51..96ea772 100644 --- a/lib/tfw/components/snapshot_provider.py +++ b/lib/tfw/components/snapshot_provider.py @@ -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)