Changeset View
Changeset View
Standalone View
Standalone View
helpers/check-abi.py
Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Line(s) | 194 | cmd = [ | |||
---|---|---|---|---|---|
195 | "abi-compliance-checker", | 195 | "abi-compliance-checker", | ||
196 | "-report-path", reportPath, | 196 | "-report-path", reportPath, | ||
197 | "-l", libname, | 197 | "-l", libname, | ||
198 | "--old", oldLibraryPath, | 198 | "--old", oldLibraryPath, | ||
199 | "--new", newLibraryPath, | 199 | "--new", newLibraryPath, | ||
200 | ] | 200 | ] | ||
201 | logging.debug(" ".join(cmd)) | 201 | logging.debug(" ".join(cmd)) | ||
202 | try: | 202 | try: | ||
203 | prog = subprocess.run(cmd, check=True, capture_output=True) | 203 | prog = subprocess.run(cmd, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) | ||
204 | except subprocess.CalledProcessError as e: | 204 | except subprocess.CalledProcessError as e: | ||
205 | if e.returncode == 1: # that means that we are not compatible, but still valid output. | 205 | if e.returncode == 1: # that means that we are not compatible, but still valid output. | ||
206 | logging.warning("abi-compliance-checker exited with 1:\n%s", prog.stdout.decode()) | 206 | logging.warning("abi-compliance-checker exited with 1:\n%s", prog.stdout.decode()) | ||
207 | 207 | | |||
208 | yml.update(parseACCOutputToDict(e.stdout)) | 208 | yml.update(parseACCOutputToDict(e.stdout)) | ||
209 | else: | 209 | else: | ||
210 | logging.error("abi-compliance-checker exited with %s:\nstdout:\n\ŧ%s\nstderr:\n\t%s", e.returncode, e.stdout.decode(), e.stderr.decode()) | 210 | logging.error("abi-compliance-checker exited with %s:\nstdout:\n\ŧ%s\nstderr:\n\t%s", e.returncode, e.stdout.decode(), e.stderr.decode()) | ||
211 | retval = e.returncode | 211 | retval = e.returncode | ||
Show All 11 Lines |