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 <javier.b.perez.hernandez@intel.com>
This commit is contained in:
Javier B Perez 2016-02-08 09:18:31 -06:00
commit 108aaf89ec

View file

@ -119,8 +119,8 @@ def run_sanity_footprint(commit=None, cwd=os.environ.get('ZEPHYR_BASE'),
output_file=None): output_file=None):
if not output_file: if not output_file:
output_file = sanity_results_filename(commit) output_file = sanity_results_filename(commit)
cmd = 'source ./zephyr-env.sh && ./scripts/sanitycheck --inline-logs --all' cmd = '/bin/bash -c "source ./zephyr-env.sh && ./scripts/sanitycheck --inline-logs --all'
cmd += ' --build-only --tag footprint -o %s' % output_file cmd += ' --build-only --tag footprint -o %s"' % output_file
logger.debug('Sanity (%s) %s' %(commit, cmd)) logger.debug('Sanity (%s) %s' %(commit, cmd))
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,