mirror of
https://github.com/NixOS/nix
synced 2025-07-09 12:03:55 +02:00
tests/common.sh.in: Add enableFeatures helper
This commit is contained in:
parent
5d208cbe41
commit
d2586188fe
12 changed files with 13 additions and 22 deletions
|
@ -173,10 +173,15 @@ needLocalStore() {
|
|||
}
|
||||
|
||||
# Just to make it easy to find which tests should be fixed
|
||||
buggyNeedLocalStore () {
|
||||
buggyNeedLocalStore() {
|
||||
needLocalStore
|
||||
}
|
||||
|
||||
enableFeatures() {
|
||||
local features="$1"
|
||||
sed -i 's/experimental-features .*/& '"$features"'/' "$NIX_CONF_DIR"/nix.conf
|
||||
}
|
||||
|
||||
set -x
|
||||
|
||||
if [[ -n "${NIX_DAEMON_PACKAGE:-}" ]]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue