1
0
Fork 0
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:
Eelco Dolstra 2022-03-02 21:48:25 +01:00
parent 5d208cbe41
commit d2586188fe
12 changed files with 13 additions and 22 deletions

View file

@ -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