about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorBernardo Meurer <bernardo@meurer.org>2021-11-09 20:13:14 -0800
committerBernardo Meurer <bernardo@meurer.org>2021-11-09 20:24:05 -0800
commit546d60c5e6748b0479aceba50acd58e741daecf3 (patch)
tree02a57a679579e9e31859b9cc5bc00cb07673b8d6 /nixos
parent04cf6dc67f8e29bd086ebd1dc9ad7c8262913347 (diff)
nixos/tests/misc: fix nix 2.4 support
Diffstat (limited to 'nixos')
-rw-r--r--nixos/tests/misc.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/tests/misc.nix b/nixos/tests/misc.nix
index fb19b7060562f..0587912c9a226 100644
--- a/nixos/tests/misc.nix
+++ b/nixos/tests/misc.nix
@@ -50,17 +50,18 @@ import ./make-test-python.nix ({ pkgs, ...} : rec {
 
 
       def get_path_info(path):
-          result = machine.succeed(f"nix path-info --json {path}")
+          result = machine.succeed(f"nix --option experimental-features nix-command path-info --json {path}")
           parsed = json.loads(result)
           return parsed
 
 
       with subtest("nix-db"):
           info = get_path_info("${foo}")
+          print(info)
 
           if (
               info[0]["narHash"]
-              != "sha256:0afw0d9j1hvwiz066z93jiddc33nxg6i6qyp26vnqyglpyfivlq5"
+              != "sha256-BdMdnb/0eWy3EddjE83rdgzWWpQjfWPAj3zDIFMD3Ck="
           ):
               raise Exception("narHash not set")