mirror of
https://gitlab.com/TECHNOFAB/nixtest.git
synced 2025-12-12 02:00:18 +01:00
feat: add pure mode which unsets env variables before script tests
This commit is contained in:
parent
7bb5c65259
commit
3ff5b358d5
2 changed files with 9 additions and 2 deletions
|
|
@ -83,7 +83,9 @@
|
|||
type = "script";
|
||||
script = ''
|
||||
echo Test something here
|
||||
exit 1
|
||||
# required in pure mode:
|
||||
export PATH="${lib.makeBinPath [pkgs.gnugrep]}"
|
||||
grep -q "test" ${builtins.toFile "test" "test"}
|
||||
'';
|
||||
}
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue