Skip to content

Commit 7326a26

Browse files
committed
Merge pull request #852 from simvue-io/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 0353103 + c62dd7d commit 7326a26

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
args: [--branch, main, --branch, dev]
2424
- id: check-added-large-files
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: v0.12.10
26+
rev: v0.12.11
2727
hooks:
2828
- id: ruff
2929
args: [ --fix, --exit-non-zero-on-fix, "--ignore=C901" ]

tests/functional/test_executor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ def completion_callback(*_, success: dict[str, bool]=success, **__):
167167
)
168168
run.add_process(
169169
identifier=f"test_completion_callbacks_var_change_{os.environ.get('PYTEST_XDIST_WORKER', 0)}",
170-
executable="bash",
171-
c="exit 0",
170+
"exit 0",
172171
completion_callback=completion_callback
173172
)
174173

tests/functional/test_run_execute_process.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@
1515
def test_monitor_processes(create_plain_run_offline: tuple[Run, dict]):
1616
_run: Run
1717
_run, _ = create_plain_run_offline
18-
_run.add_process(f"process_1_{os.environ.get('PYTEST_XDIST_WORKER', 0)}", "Hello world!", executable="echo", n=True)
19-
_run.add_process(f"process_2_{os.environ.get('PYTEST_XDIST_WORKER', 0)}", "bash" if sys.platform != "win32" else "powershell", debug=True, c="exit 0")
20-
_run.add_process(f"process_3_{os.environ.get('PYTEST_XDIST_WORKER', 0)}", "ls", "-ltr")
18+
19+
if os.environ.get("SHELL", "") == "bash" or sys.platform != "win32":
20+
_run.add_process(f"process_1_{os.environ.get('PYTEST_XDIST_WORKER', 0)}", "Hello world!", executable="echo", n=True)
21+
_run.add_process(f"process_2_{os.environ.get('PYTEST_XDIST_WORKER', 0)}", "bash", debug=True, c="exit 0")
22+
_run.add_process(f"process_3_{os.environ.get('PYTEST_XDIST_WORKER', 0)}", "ls", "-ltr")
23+
else:
24+
_run.add_process(f"process_1_{os.environ.get('PYTEST_XDIST_WORKER', 0)}", "Hello World!", executable="Write-Output")
25+
_run.add_process(f"process_2_{os.environ.get('PYTEST_XDIST_WORKER', 0)}", executable="Get-ChildItem")
26+
_run.add_process(f"process_3_{os.environ.get('PYTEST_XDIST_WORKER', 0)}", "exit 0")
2127
sender(_run._sv_obj._local_staging_file.parents[1], 1, 10, ["folders", "runs", "alerts"])
2228

2329

0 commit comments

Comments
 (0)