Merge pull request #283 from nix-community/joerg-ci

apply treefmt
This commit is contained in:
Jörg Thalheim 2023-12-10 17:03:00 +01:00 committed by GitHub
commit 97dd8023e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,9 +69,17 @@ def test_expression() -> None:
with open(TEST_ROOT.joinpath("assets/ci.nix"), "r") as ci_nix: with open(TEST_ROOT.joinpath("assets/ci.nix"), "r") as ci_nix:
common_test(["-E", ci_nix.read()]) common_test(["-E", ci_nix.read()])
def test_eval_error() -> None: def test_eval_error() -> None:
with TemporaryDirectory() as tempdir: with TemporaryDirectory() as tempdir:
cmd = [str(BIN), "--gc-roots-dir", tempdir, "--meta", "--flake", ".#legacyPackages.x86_64-linux"] cmd = [
str(BIN),
"--gc-roots-dir",
tempdir,
"--meta",
"--flake",
".#legacyPackages.x86_64-linux",
]
res = subprocess.run( res = subprocess.run(
cmd, cmd,
cwd=TEST_ROOT.joinpath("assets"), cwd=TEST_ROOT.joinpath("assets"),