-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change 'salish' submit job command to 'bash' (#80)
* Drop scheduler directives from script for `salish` `salish` no longer uses a scheduler. So, its run execution script no longer needs either `#SBATCH` or `#PBS` directives sections. Also refactored `test_salish` to use `monkeypatch.setattr` instead of `patch`. * Refactor tests to use monkeypatch for setting SYSTEM Replaced `with patch` context managers with `monkeypatch.setattr` in all TestModules test cases to improve code readability and consistency. Added new test for "salish" system to ensure future-proofing and full coverage of available systems. * Implement stdout & stderr redirection for `salish` This commit adds redirection of stdout and stderr to files within `${RESULTS_DIR}` for the `salish` system, ensuring logging of output and error streams. New tests were added to verify the functionality for both the `--deflate` and non-deflate cases. Necessary changes were made in the `_execute()` function and corresponding test cases to support this redirection. * Refactor execution call in run.py Moved the _execute() call out of the script string construction for compatibility with Python 3.11. This change assigns the _execute call result to a variable before joining it into the final script. * Change job submission command for 'salish' to 'bash' Updated the job submission command for the 'salish' system from 'qsub' to 'bash'. Added logic to handle job submissions specifically for 'bash' and adjusted unit tests accordingly to ensure compatibility and functionality.
- Loading branch information
1 parent
5d7bf5c
commit ec1529a
Showing
2 changed files
with
334 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.