Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special chars creating submit issues #723

Merged
merged 1 commit into from
Dec 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions arc/job/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
job_status, job_id = '', ''
submit_cmd = submit_cmd or submit_command[cluster_soft]
submit_filename = submit_filename or submit_filenames[cluster_soft]
cmd = f"cd {path}; {submit_cmd} {submit_filename}"
cmd = f'cd "{path}"; {submit_cmd} {submit_filename}'

Check warning on line 244 in arc/job/local.py

View check run for this annotation

Codecov / codecov/patch

arc/job/local.py#L244

Added line #L244 was not covered by tests
stdout, stderr = execute_command(cmd)
if not len(stdout):
time.sleep(10)
Expand Down Expand Up @@ -390,7 +390,7 @@
if os.path.isfile(path):
path = os.path.dirname(path)
recursive = ' -R' if recursive else ''
command = [f'cd {path}'] if path else []
command = [f'cd "{path}"'] if path else []
command.append(f'chmod{recursive} {mode} {file_name}')
execute_command(command=command)

Expand Down
Loading