summary refs log tree commit diff
path: root/lib/tests/misc.nix
diff options
context:
space:
mode:
authorTim Cuthbertson <tim@gfxmonk.net>2018-10-20 22:23:58 +1100
committerTim Cuthbertson <tim@gfxmonk.net>2018-10-20 22:33:04 +1100
commitd984c553832fad99ee48e512252c0f2f27632789 (patch)
tree17911c8be24d3a1a0d5eeb53ff90f9e1273e0ad5 /lib/tests/misc.nix
parent7a10601dc4f818ecc24097ac8ab38e2e0050cf1d (diff)
downloadnixpkgs-d984c553832fad99ee48e512252c0f2f27632789.tar
nixpkgs-d984c553832fad99ee48e512252c0f2f27632789.tar.gz
nixpkgs-d984c553832fad99ee48e512252c0f2f27632789.tar.bz2
nixpkgs-d984c553832fad99ee48e512252c0f2f27632789.tar.lz
nixpkgs-d984c553832fad99ee48e512252c0f2f27632789.tar.xz
nixpkgs-d984c553832fad99ee48e512252c0f2f27632789.tar.zst
nixpkgs-d984c553832fad99ee48e512252c0f2f27632789.zip
lib.isStorePath: fix `false` result when passed a path object
Since `isStorePath` relies on comparing against builtins.storeDir
(a string), we need to convert the input into a string as well.
Diffstat (limited to 'lib/tests/misc.nix')
-rw-r--r--lib/tests/misc.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix
index 853d911cdc8..1604fbb39cb 100644
--- a/lib/tests/misc.nix
+++ b/lib/tests/misc.nix
@@ -112,7 +112,7 @@ runTests {
         storePathAppendix = isStorePath
           "${goodPath}/bin/python";
         nonAbsolute = isStorePath (concatStrings (tail (stringToCharacters goodPath)));
-        asPath = isStorePath goodPath;
+        asPath = isStorePath (/. + goodPath);
         otherPath = isStorePath "/something/else";
         otherVals = {
           attrset = isStorePath {};