This commit enables the parametrization for "legacy-combined" protocol. All failing tests with that have been either fixed or disabled. Notably: - A couple of tests (e.g. involving builders) could be made to work with a non-local store, but this would require some refactoring to testlib in order to make certain configuration settings generic over local and remote operations. We've disabled those for now, in order to make progress - The store tests all run locally only because of their nature - The flakes tests also all run locally only because my energy for fixing them is limited (and it's a *lot* of test failures, with probably little overall benefit in terms of test coverage) Change-Id: I56fa249a64f7c17c952f688ec89e9687f2a13f12
30 lines
1.2 KiB
Python
30 lines
1.2 KiB
Python
from pathlib import Path
|
|
from testlib.fixtures.nix import Nix
|
|
from testlib.fixtures.file_helper import with_files
|
|
from testlib.utils import get_global_asset_pack
|
|
import pytest
|
|
|
|
pytestmark = pytest.mark.no_daemon
|
|
|
|
|
|
@with_files(get_global_asset_pack("simple-drv"))
|
|
def test_stdio_forward_failure(nix: Nix, files: Path):
|
|
result = (
|
|
nix.nix_build(
|
|
[
|
|
f"{files}/simple.nix",
|
|
"--builders",
|
|
# build-remote handles the first ssh-ng in-process, but we want to test how nix-daemon
|
|
# behaves in error cases. we need to explicitly set remote-program for the main remote
|
|
# connection since we may choose the wrong binary otherwise. the inner ssh-ng also has
|
|
# a remote-program set to cause predictable failures (rather than using ssh impurely).
|
|
f"ssh-ng://localhost?remote-program={nix.env.dirs.nix_bin_dir}/nix-daemon&remote-store=ssh-ng://localhost?remote-program=false",
|
|
"-j0",
|
|
]
|
|
)
|
|
.run()
|
|
.expect(1)
|
|
)
|
|
assert "stream ended unexpectedly" in result.stderr_plain
|
|
assert "Lix crashed" not in result.stderr_plain
|