Skip to content

Commit

Permalink
address change requests
Browse files Browse the repository at this point in the history
  • Loading branch information
caila-marashaj committed May 6, 2024
1 parent 943c3d9 commit b5a3817
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions push
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ def _scp_to_robot(scp_util, host, local, remote, **extras):
_cmd(
[scp_util]
+ _SSH_EXTRA_OPTS
+ [local, 'root@{host}:{remote}'.format(host=host, remote=remote)],
+ [local, f'root@{host}:{remote}'],
**extras
)

def _scp_from_robot(scp_util, host, local, remote, **extras):
_cmd(
[scp_util]
+ _SSH_EXTRA_OPTS
+ ['root@{host}:{remote}'.format(host=host, remote=remote), local],
+ [f'root@{host}:{remote}', local],
**extras
)

Expand All @@ -66,7 +66,7 @@ def _controlled_tempdir():

def _build_fw(zip_path, apps_path, targets):
if targets:
regex_list = [re.compile(f"{target}" + r"(.*).hex") for target in targets]
regex_list = [re.compile(f"{target}" + r"(.*)(.hex|.bin)") for target in targets]
with ZipFile(zip_path, 'w') as zf:
for fname in os.listdir(apps_path):
# only write to zip file to be copied if filename matches target
Expand Down Expand Up @@ -218,7 +218,7 @@ def _arg_parser(parent=None):
)
parser.add_argument(
'--targets',
nargs='+'
nargs='*'
)
return parser

Expand Down

0 comments on commit b5a3817

Please sign in to comment.