Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/tests/e2e_tests/conftest.py b/tests/e2e_tests/conftest.py 2index 310197a..9e82a1e 100644 3--- a/tests/e2e_tests/conftest.py 4+++ b/tests/e2e_tests/conftest.py 5@@ -22,9 +22,7 @@ def tmp_repo(tmp_path_factory): 6 # Create the sample repo for testing. 7 os.chdir(tmp_repo_dir) 8 9- # When defining cmd, as_posix() is required for Windows compatibility. 10- git_dummy_path = utils.get_venv_path() / "git-dummy" 11- cmd = f"{git_dummy_path.as_posix()} --commits=10 --branches=4 --merge=1 --constant-sha --name=sample_repo --diverge-at=2" 12+ cmd = "git-dummy --commits=10 --branches=4 --merge=1 --constant-sha --name=sample_repo --diverge-at=2" 13 cmd_parts = split(cmd) 14 subprocess.run(cmd_parts) 15 16diff --git a/tests/e2e_tests/utils.py b/tests/e2e_tests/utils.py 17index 8dfc623..41a4cf6 100644 18--- a/tests/e2e_tests/utils.py 19+++ b/tests/e2e_tests/utils.py 20@@ -69,13 +69,6 @@ def get_cmd_parts(raw_command): 21 f"git-sim -d --output-only-path --img-format=png --font='{font_path}'", 22 ) 23 24- # Replace `git-sim` with the full path to the binary. 25- # as_posix() is needed for Windows compatibility. 26- # The space is included in "git-sim " to avoid replacing any occurrences 27- # of git-sim in a font path. 28- git_sim_path = get_venv_path() / "git-sim" 29- cmd = cmd.replace("git-sim ", f"{git_sim_path.as_posix()} ") 30- 31 # Show full test command when run in diagnostic mode. 32 print(f" Test command: {cmd}") 33