aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTom Bereknyei <tomberek@gmail.com>2022-05-20 08:20:00 -0400
committerTom Bereknyei <tomberek@gmail.com>2022-05-20 08:20:00 -0400
commit7a04fb1c56ca60652c2a44019b31fe8cf2e2bc46 (patch)
treeb16cd5856ca2ebec17fc5719ce7dfb9385e72741 /tests
parent0053dab43f9ca350c27235f8a58b5d550bfffd38 (diff)
repl: add repl-flake experimental feature for gating
Diffstat (limited to 'tests')
-rw-r--r--tests/repl.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/repl.sh b/tests/repl.sh
index 07f647585..5caf0a58a 100644
--- a/tests/repl.sh
+++ b/tests/repl.sh
@@ -87,7 +87,7 @@ drvPath
testReplResponse '
drvPath
' '".*-simple.drv"' \
---file $testDir/simple.nix --experimental-features 'flakes'
+--file $testDir/simple.nix --experimental-features 'repl-flake'
mkdir -p flake && cat <<EOF > flake/flake.nix
{
@@ -102,7 +102,7 @@ EOF
testReplResponse '
foo + baz
' "3" \
- ./flake ./flake\#bar
+ ./flake ./flake\#bar --experimental-features 'flakes repl-flake'
# Test the `:reload` mechansim with flakes:
# - Eval `./flake#changingThing`
@@ -115,6 +115,6 @@ sleep 1 # Leave the repl the time to eval 'foo'
sed -i 's/beforeChange/afterChange/' flake/flake.nix
echo ":reload"
echo "changingThing"
-) | nix repl ./flake)
+) | nix repl ./flake --experimental-features 'flakes repl-flake')
echo "$replResult" | grep -qs beforeChange
echo "$replResult" | grep -qs afterChange