Skip to content

Commit 2d0ec62

Browse files
committed
🚸 Fancy grid use for ZSH and bash shells
1 parent deeccf6 commit 2d0ec62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎simvue/utilities.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def parse_validation_response(
128128

129129
_table_fmt: str = "simple"
130130

131-
if os.environ.get("SHELL") == "bash":
131+
if any(shell in os.environ.get("SHELL", "") for shell in ("zsh", "bash")):
132132
_table_fmt = "fancy_grid"
133133

134134
_table = tabulate.tabulate(out, headers=headers, tablefmt=_table_fmt)

‎tests/functional/test_run_execute_process.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_monitor_processes(create_plain_run_offline: tuple[Run, dict]):
1616
_run: Run
1717
_run, _ = create_plain_run_offline
1818

19-
if os.environ.get("SHELL", "") == "bash" or sys.platform != "win32":
19+
if any(shell in os.environ.get("SHELL", "") for shell in ("zsh", "bash")) or sys.platform != "win32":
2020
_run.add_process(f"process_1_{os.environ.get('PYTEST_XDIST_WORKER', 0)}", "Hello world!", executable="echo", n=True)
2121
_run.add_process(f"process_2_{os.environ.get('PYTEST_XDIST_WORKER', 0)}", "bash", debug=True, c="exit 0")
2222
_run.add_process(f"process_3_{os.environ.get('PYTEST_XDIST_WORKER', 0)}", "ls", "-ltr")

0 commit comments

Comments
 (0)