about summary refs log tree commit diff
path: root/nixos/tests/misc.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/misc.nix')
-rw-r--r--nixos/tests/misc.nix25
1 files changed, 0 insertions, 25 deletions
diff --git a/nixos/tests/misc.nix b/nixos/tests/misc.nix
index e7842debba7a2..33b3ca2c11c2e 100644
--- a/nixos/tests/misc.nix
+++ b/nixos/tests/misc.nix
@@ -44,28 +44,6 @@ in {
 
   testScript =
     ''
-      import json
-
-
-      def get_path_info(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-BdMdnb/0eWy3EddjE83rdgzWWpQjfWPAj3zDIFMD3Ck="
-          ):
-              raise Exception("narHash not set")
-
-          if info[0]["narSize"] != 128:
-              raise Exception("narSize not set")
-
       with subtest("nixos-version"):
           machine.succeed("[ `nixos-version | wc -w` = 2 ]")
 
@@ -149,9 +127,6 @@ in {
       with subtest("shell-vars"):
           machine.succeed('[ -n "$NIX_PATH" ]')
 
-      with subtest("nix-db"):
-          machine.succeed("nix-store -qR /run/current-system | grep nixos-")
-
       with subtest("Test sysctl"):
           machine.wait_for_unit("systemd-sysctl.service")
           assert "1" == machine.succeed("sysctl -ne vm.swappiness").strip()