Skip to content

Commit

Permalink
Merge pull request #6432 from MetRonnie/unicode
Browse files Browse the repository at this point in the history
Replace unicode character in `cylc show` output
  • Loading branch information
hjoliver authored Oct 21, 2024
2 parents 0a88f7a + 1edb6dd commit 6005ab5
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion cylc/flow/task_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def color_wrap(string, is_complete):
ret: List[str] = []
indent_level: int = 0
op: Optional[str] = None
fence = '' # U+2999 (dotted fence)
fence = '' # U+2506 (Box Drawings Light Triple Dash Vertical)
for part in RE_EXPR_SPLIT.split(self._completion_expression):
if not part.strip():
continue
Expand Down
8 changes: 4 additions & 4 deletions tests/flakyfunctional/cylc-show/00-simple.t
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ outputs: ('⨯': not completed)
⨯ 20141106T0900Z/foo succeeded
⨯ 20141106T0900Z/foo failed
output completion: incomplete
(
started
and succeeded
)
(
started
and succeeded
)
__SHOW_OUTPUT__
#-------------------------------------------------------------------------------
TEST_NAME="${TEST_NAME_BASE}-show-json"
Expand Down
6 changes: 3 additions & 3 deletions tests/flakyfunctional/cylc-show/04-multi.t
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ outputs: ('⨯': not completed)
⨯ 2016/t1 succeeded
⨯ 2016/t1 failed
output completion: incomplete
succeeded
succeeded
Task ID: 2017/t1
title: (not given)
Expand All @@ -61,7 +61,7 @@ outputs: ('⨯': not completed)
⨯ 2017/t1 succeeded
⨯ 2017/t1 failed
output completion: incomplete
succeeded
succeeded
Task ID: 2018/t1
title: (not given)
Expand All @@ -78,7 +78,7 @@ outputs: ('⨯': not completed)
⨯ 2018/t1 succeeded
⨯ 2018/t1 failed
output completion: incomplete
succeeded
succeeded
__TXT__

contains_ok "${RUND}/show2.txt" <<'__TXT__'
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/cylc-show/05-complex.t
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ outputs: ('⨯': not completed)
⨯ 20000101T0000Z/f succeeded
⨯ 20000101T0000Z/f failed
output completion: incomplete
succeeded
succeeded
19991231T0000Z/f succeeded
20000101T0000Z/a succeeded
20000101T0000Z/b succeeded
Expand All @@ -80,7 +80,7 @@ outputs: ('⨯': not completed)
⨯ 20000102T0000Z/f succeeded
⨯ 20000102T0000Z/f failed
output completion: incomplete
succeeded
succeeded
20000101T0000Z/f succeeded
20000102T0000Z/a succeeded
20000102T0000Z/b succeeded
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/tui/screenshots/test_show.success.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"></span><span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"> ⨯ 1/foo succeeded </span><span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"></span><span style="color:#000000;background:#e5e5e5"> </span>
<span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"></span><span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"> ⨯ 1/foo failed </span><span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"></span><span style="color:#000000;background:#e5e5e5"> </span>
<span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"></span><span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5">output completion: incomplete </span><span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"></span><span style="color:#000000;background:#e5e5e5"> </span>
<span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"></span><span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"> succeeded </span><span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"></span><span style="color:#000000;background:#e5e5e5"> </span>
<span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"></span><span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"> succeeded </span><span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"></span><span style="color:#000000;background:#e5e5e5"> </span>
<span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"></span><span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"></span><span style="color:#000000;background:#e5e5e5"> </span>
<span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"></span><span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"></span><span style="color:#000000;background:#e5e5e5"> </span>
<span style="color:#000000;background:#e5e5e5"> </span><span style="color:#000000;background:#e5e5e5"></span><span style="color:#000000;background:#e5e5e5"> q to close </span><span style="color:#000000;background:#e5e5e5"></span><span style="color:#000000;background:#e5e5e5"> </span>
Expand Down
24 changes: 12 additions & 12 deletions tests/unit/test_task_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@ def test_format_completion_status():
indent=2, gutter=2
) == ' ' + sstrip(
'''
(
succeeded
and x
and y
)
or expired
(
succeeded
and x
and y
)
or expired
'''
)
outputs.set_message_complete('succeeded')
Expand All @@ -237,12 +237,12 @@ def test_format_completion_status():
indent=2, gutter=2
) == ' ' + sstrip(
'''
(
succeeded
and x
and y
)
or expired
(
succeeded
and x
and y
)
or expired
'''
)

Expand Down

0 comments on commit 6005ab5

Please sign in to comment.