From 846e8a079578507f576f6cb9e2628cb8ff8ca138 Mon Sep 17 00:00:00 2001 From: Kiel Christofferson Date: Fri, 2 May 2014 19:19:35 -0400 Subject: Replace subprocess.call() with subprocess.check_call(). Using check_call(), a non-zero return value from the subprocess will cause the desired behavior of an aborted build with a stack trace. --- components/binary-includes | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/binary-includes') diff --git a/components/binary-includes b/components/binary-includes index a18d508ea..5b829aeba 100755 --- a/components/binary-includes +++ b/components/binary-includes @@ -84,13 +84,13 @@ def main(): if verbose: print('I: Copying config/includes to binary') - cpio = subprocess.call('cd config/includes && find . | cpio -dmpu --no-preserve-owner ../../binary', shell=True) + cpio = subprocess.check_call('cd config/includes && find . | cpio -dmpu --no-preserve-owner ../../binary', shell=True) if glob.glob('config/includes.binary/*') or glob.glob('config/includes.binary/.*'): if verbose: print('I: Copying config/includes.binary to binary') - cpio = subprocess.call('cd config/includes.binary && find . | cpio -dmpu --no-preserve-owner ../../binary', shell=True) + cpio = subprocess.check_call('cd config/includes.binary && find . | cpio -dmpu --no-preserve-owner ../../binary', shell=True) # stagefile os.makedirs('.build', exist_ok=True) -- cgit v1.2.3