Lines Matching refs:commit
84 def get_git_commit(commit): argument
86 proc = subprocess.Popen('git rev-parse %s' % commit, stdout=subprocess.PIPE,
92 def sanity_results_filename(commit=None, cwd=os.environ.get('ZEPHYR_BASE')): argument
93 if not commit:
96 if commit == RELEASE_DATA:
99 file_name = "%s.csv" % commit
103 def git_checkout(commit, cwd=os.environ.get('ZEPHYR_BASE')): argument
109 proc = subprocess.Popen('git reset %s --hard' % commit,
119 def run_sanity_footprint(commit=None, cwd=os.environ.get('ZEPHYR_BASE'), argument
122 output_file = sanity_results_filename(commit)
125 logger.debug('Sanity (%s) %s' %(commit, cmd))
134 logger.error("Couldn't build footprint apps in commit %s" % commit)
136 raise Exception("Couldn't build footprint apps in commit %s" % commit)
138 def run_footprint_build(commit=None): argument
139 logging.debug("footprint build for %s" % commit)
140 if not commit:
153 if git_checkout(commit, tmp_location):
154 run_sanity_footprint(commit, tmp_location)
168 def get_footprint_results(commit=None): argument
169 sanity_file = sanity_results_filename(commit)
170 if (not os.path.exists(sanity_file) or not commit) and commit != RELEASE_DATA:
171 run_footprint_build(commit)
293 build_history(args.base_commit, args.commit)