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

Small Changes to location of log/x/___-rose-suite.conf #137

Merged
Show file tree
Hide file tree
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 cylc/rose/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,9 @@ def dump_rose_log(rundir, node):
"""
dumper = ConfigDumper()
timestamp = DateTimeOperator().process_time_point_str(
print_format='%Y%m%dT%H%M%S%Z'
print_format='%Y%m%dT%H%M%S%z'
)
rel_path = f'log/conf/{timestamp}-rose-suite.conf'
rel_path = f'log/config/{timestamp}-rose-suite.conf'
fpath = rundir / rel_path
fpath.parent.mkdir(exist_ok=True, parents=True)
dumper.dump(node, str(fpath))
Expand Down
3 changes: 2 additions & 1 deletion tests/test_config_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ def test_dump_rose_log(monkeypatch, tmp_path):
node = ConfigNode()
node.set(['env', 'FOO'], '"The finger writes."')
dump_rose_log(tmp_path, node)
result = (tmp_path / 'log/conf/18151210T0000Z-rose-suite.conf').read_text()
result = (
tmp_path / 'log/config/18151210T0000Z-rose-suite.conf').read_text()
assert result == '[env]\nFOO="The finger writes."\n'


Expand Down