diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-02-22 15:17:15 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-02-27 15:25:44 +0000 |
commit | 6cffb0dfb9a2be837bbb9b3b8de26806bfd0360f (patch) | |
tree | de3670aa6fad5a0ff335d8a0279cc014b04dea86 /morphlib/builder.py | |
parent | 0e23121d8534bb39ba75186a3c57fe31bb60e45e (diff) | |
download | morph-6cffb0dfb9a2be837bbb9b3b8de26806bfd0360f.tar.gz |
Hide git output from unit test output
This makes it easier to check the output with vgrep for errors or
problems. Voluminous git output made that hard.
The key is that "git bundle create" has no --quiet optio (meh),
so we have to redirect stderr to /dev/null. However, that would
hide real errors, which we want to catch. Luckily, we can just
replace the call to subprocess.call with a call to
subprocess.check_call, and then we'll at least abort if there's
an error, instead of silently ignoring it.
Diffstat (limited to 'morphlib/builder.py')
-rw-r--r-- | morphlib/builder.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/builder.py b/morphlib/builder.py index 385a431f..f08ae259 100644 --- a/morphlib/builder.py +++ b/morphlib/builder.py @@ -359,7 +359,7 @@ class ChunkBuilder(BlobBuilder): pathname = os.path.join(dirname, basename) os.utime(pathname, (now, now)) os.utime(dirname, (now, now)) - + def build_with_system_or_commands(self): '''Run explicit commands or commands from build system. |