Skip to content

Commit

Permalink
Shorten generated names.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Nov 22, 2024
1 parent 255db03 commit 6318cdb
Show file tree
Hide file tree
Showing 33 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion suite/auto-sync/src/autosync/MCUpdater.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ def valid_byte_seq(self, enc_bytes):
def get_multi_mode_filename(self) -> Path:
filename = self.file_path.stem
parent = self.file_path.parent
detailed_name = f"{filename}_{'_'.join(self.opts)}.txt"
prefix_less_opts = [re.sub(r"CS_(OPT|MODE)_", "", o).lower() for o in self.opts]
detailed_name = f"{filename}_{'_'.join(prefix_less_opts)}.txt"
detailed_name = re.sub(r"[+-]", "_", detailed_name)
out_path = parent.joinpath(detailed_name)
return Path(out_path)
Expand Down
2 changes: 1 addition & 1 deletion suite/auto-sync/src/autosync/mcupdater.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"powerpc64-unknown-aix-gnu": ["CS_MODE_BIG_ENDIAN", "CS_MODE_64", "CS_MODE_AIX_OS"],
"powerpc64le-unknown-unknown": ["CS_MODE_LITTLE_ENDIAN", "CS_MODE_64"],
"powerpc64-ibm-aix-xcoff": ["CS_MODE_BIG_ENDIAN", "CS_MODE_64", "CS_MODE_AIX_OS"],
"powerpc_unknown_aix_gnu": ["CS_MODE_BIG_ENDIAN", "CS_MODE_32", "CS_MODE_AIX_OS"],
"powerpc-unknown-aix-gnu": ["CS_MODE_BIG_ENDIAN", "CS_MODE_32", "CS_MODE_AIX_OS"],
"pwr7": ["CS_MODE_PWR7"],
"pwr8": ["CS_MODE_PWR8"],
"pwr9": ["CS_MODE_PWR9"],
Expand Down

0 comments on commit 6318cdb

Please sign in to comment.