about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-07-30T09·33+0200
committerGitHub <noreply@github.com>2019-07-30T09·33+0200
commit7680357ccc7e7759244528334df81ebb71f9123b (patch)
tree1a43e2906116d5ea3bcc0a39b5cd14673c191407 /tests
parent41a52466854ab3a7d4adedc3777c0b0585ef79fe (diff)
parent89865144c3ba0162cd37bcbe49b3095e9bab4164 (diff)
Merge pull request #3012 from basvandijk/fix-pathExists
Allow builtins.pathExists to check the existence of /nix/store paths
Diffstat (limited to 'tests')
-rw-r--r--tests/import-derivation.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/import-derivation.nix b/tests/import-derivation.nix
index 91adcd288f6e..44fa9a45d7e1 100644
--- a/tests/import-derivation.nix
+++ b/tests/import-derivation.nix
@@ -10,7 +10,10 @@ let
       '';
   };
 
-  value = import bar;
+  value =
+    # Test that pathExists can check the existence of /nix/store paths
+    assert builtins.pathExists bar;
+    import bar;
 
 in