rename log files and use pathlib.Path #30
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Rename log files from
*.sh.log
to*_sh.log
Also replaced most uses of
os.path
bypathlib.Path
.Testing
Passes unit tests on MacOS, linux, Windows (at least one required)(no unit tests)run_testr
from within theska_testr
directory and from../test_testr
relative toska_testr
to check that: 1.- tests pass, 2.- logs are in the right place:run_testr --include Quaternion
(test_spec path is None)run_testr --include dpa_check --root ../ska_testr
(this uses regress_dir)run_testr --test-spec test_spec_Quaternion
(using proper test_spec path)run_testr --test-spec test_spec_Quaternion --root ../ska_testr
(logs should be inoutputs
within CWD)run_testr --test-spec test_spec_Quaternion --root ../ska_testr --outputs-dir other_output
(logs should be inother_output
within CWD)run_testr --test-spec test_spec_Quaternion --root ../ska_testr --outputs-dir
pwd_output
(logs should be in the given absolute path within CWD)Fixes #