From 3eeb5d10babc96013ab15f82918cb83295686efc Mon Sep 17 00:00:00 2001 From: "Commentator2.0" Date: Tue, 18 Nov 2025 17:25:21 +0100 Subject: [PATCH] tests/functional2/lang: fix warnings While the err file should always be empty, we prefer not have (easily avoidable) warnings in the log, in order for actual warnings to be spotted more easily. Additionally this way no additional changes are required in case they make use of some depreacted features in the future. Change-Id: Ie078e2a851b2035d839f6b95d4188e475eb96b2d --- tests/functional2/lang/builtins.readDir/test_read_dir.py | 1 + .../lang/builtins.readFileType/test_read_file_type.py | 1 + tests/functional2/lang/search-path/test_search_path.py | 1 + 3 files changed, 3 insertions(+) diff --git a/tests/functional2/lang/builtins.readDir/test_read_dir.py b/tests/functional2/lang/builtins.readDir/test_read_dir.py index 4e0f50ee9..f87241fc8 100644 --- a/tests/functional2/lang/builtins.readDir/test_read_dir.py +++ b/tests/functional2/lang/builtins.readDir/test_read_dir.py @@ -23,6 +23,7 @@ from functional2.testlib.fixtures.snapshot import Snapshot }, "in.nix": CopyFile("in.nix"), "out.exp": AssetSymlink("eval-okay.out.exp"), + "err.exp": AssetSymlink("eval-okay.err.exp"), } ) def test_read_dir(files: Path, nix: Nix, snapshot: Callable[[str], Snapshot]): diff --git a/tests/functional2/lang/builtins.readFileType/test_read_file_type.py b/tests/functional2/lang/builtins.readFileType/test_read_file_type.py index b784125a4..c4dfd8aaf 100644 --- a/tests/functional2/lang/builtins.readFileType/test_read_file_type.py +++ b/tests/functional2/lang/builtins.readFileType/test_read_file_type.py @@ -23,6 +23,7 @@ from functional2.testlib.fixtures.snapshot import Snapshot }, "in.nix": CopyFile("in.nix"), "out.exp": AssetSymlink("eval-okay.out.exp"), + "err.exp": AssetSymlink("eval-okay.err.exp"), } ) def test_read_file_type(files: Path, nix: Nix, snapshot: Callable[[str], Snapshot]): diff --git a/tests/functional2/lang/search-path/test_search_path.py b/tests/functional2/lang/search-path/test_search_path.py index fb1b90b23..cad85b9ce 100644 --- a/tests/functional2/lang/search-path/test_search_path.py +++ b/tests/functional2/lang/search-path/test_search_path.py @@ -16,6 +16,7 @@ from functional2.testlib.fixtures.snapshot import Snapshot "lib.nix": CopyFile("../lib.nix"), "in.nix": CopyFile("in.nix"), "out.exp": AssetSymlink("eval-okay.out.exp"), + "err.exp": AssetSymlink("eval-okay.err.exp"), } ) def test_search_path(files: Path, nix: Nix, snapshot: Callable[[str], Snapshot]):