summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuliano Procida <gprocida@google.com>2022-08-11 16:51:27 +0100
committerGiuliano Procida <gprocida@google.com>2022-08-11 16:09:38 +0000
commit4b777b2d4233d958a4d782c2e6887a6a443502c9 (patch)
treedadd2b8431011648cae5ca3a13dcaba696923877
parent22fd9661146110a33137f415cb9d2bd9188cc05d (diff)
downloadbuild-4b777b2d4233d958a4d782c2e6887a6a443502c9.tar.gz
abitool.py: shorten ABI report paths by removing .stg
`diff_abi --abi-tool delegated` (which is what the build runs) produces a number of reports and compatibility links. This commit changes the reports as follows: * `abi.report{,.short}` are no longer copies of `abi.report.stg.short` * each `abi.report.stg.foo` is now `abi.report.foo` * `abi.report` is now a copy of `abi.report.short` Change-Id: I49aa71eb8e84ab5ecf2634180dcd62348c34c779 Test: manual Signed-off-by: Giuliano Procida <gprocida@google.com>
-rw-r--r--abi/abitool.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/abi/abitool.py b/abi/abitool.py
index 3e483f7e..1e01e93a 100644
--- a/abi/abitool.py
+++ b/abi/abitool.py
@@ -287,12 +287,10 @@ class Delegated(AbiTool):
def diff_abi(self, old_dump, new_dump, diff_report, short_report=None,
symbol_list=None, full_report=None):
# shoehorn the interface
- basename = diff_report
- stg_basename = basename + ".stg"
+ stg_basename = diff_report
stg_short = stg_basename + ".short"
links = {
- basename: stg_short,
- basename + ".short": stg_short,
+ stg_basename: stg_short,
}
changed = _run_stgdiff(old_dump, new_dump, stg_basename, symbol_list)