fix(job) Fixed premature filtering of variables

Fixed excessive deletion of environment variables containing paths to nix store package files,
causing them to not be exported in Giltab's CI environment,
plus removed duplicate tests for moving environment variables.
This commit is contained in:
Skryta Istota 2025-12-03 17:35:36 +01:00
parent 8336e6d083
commit c8f51c73ed
No known key found for this signature in database
2 changed files with 1 additions and 24 deletions

View file

@ -91,29 +91,6 @@
assert_file_contains ${package} 'HELLO="/nix/store/.*-hello-.*"'
'';
}
{
name = "do not fail on store paths";
type = "script";
script = let
package =
(cilib.mkCI {
pipelines."test" = {
variables = {
HELLO = "${pkgs.hello}";
SAMPLE = "empty";
};
};
}).packages."gitlab-ci:pipeline:test";
in
# sh
''
${ntlib.helpers.path [pkgs.gnugrep]}
${ntlib.helpers.scriptHelpers}
assert_file_contains ${package} '[".pre",".post"]'
assert_file_contains ${package} '"HELLO":"/nix/store/.*-hello-.*"'
assert_file_contains ${package} '"SAMPLE":"empty"'
'';
}
];
};
}