From 108aaf89ecaa1c601ed48014d5a836f5fa7bfe7a Mon Sep 17 00:00:00 2001 From: Javier B Perez Date: Mon, 8 Feb 2016 09:18:31 -0600 Subject: [PATCH] compare footprint: fixed script to run in bash shell only When you run the script in another console, no bash, the script won't be able to run the sanitycheck due to the source. Change-Id: I89d1f0a4e0ae9f8b0bf0cea77e3752c5a1012840 Signed-off-by: Javier B Perez --- scripts/compare_footprint | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/compare_footprint b/scripts/compare_footprint index 5544fcd1d2d..d1bc6f8dc80 100755 --- a/scripts/compare_footprint +++ b/scripts/compare_footprint @@ -119,8 +119,8 @@ def run_sanity_footprint(commit=None, cwd=os.environ.get('ZEPHYR_BASE'), output_file=None): if not output_file: output_file = sanity_results_filename(commit) - cmd = 'source ./zephyr-env.sh && ./scripts/sanitycheck --inline-logs --all' - cmd += ' --build-only --tag footprint -o %s' % output_file + cmd = '/bin/bash -c "source ./zephyr-env.sh && ./scripts/sanitycheck --inline-logs --all' + cmd += ' --build-only --tag footprint -o %s"' % output_file logger.debug('Sanity (%s) %s' %(commit, cmd)) proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,