about summary refs log tree commit diff
path: root/tvix/eval/src/tests/nix_tests/eval-okay-pathexists.nix
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-10-19T17·22+0200
committerclbot <clbot@tvl.fyi>2022-10-20T02·33+0000
commit0d9eabcaacf25816898116199683740e0e659911 (patch)
treec31e162ea1a016b21b02737f89e3b62ff604421d /tvix/eval/src/tests/nix_tests/eval-okay-pathexists.nix
parent8e188d623591871944c5d8626921747333454e9e (diff)
fix(tvix/eval): eval-okay-pathexists test can be executed r/5165
Change-Id: Ibdcaa165024584370ce9578e67985a3526e44f77
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7044
Autosubmit: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tvix/eval/src/tests/nix_tests/eval-okay-pathexists.nix')
-rw-r--r--tvix/eval/src/tests/nix_tests/eval-okay-pathexists.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/tvix/eval/src/tests/nix_tests/eval-okay-pathexists.nix b/tvix/eval/src/tests/nix_tests/eval-okay-pathexists.nix
new file mode 100644
index 000000000000..50c28ee0cd30
--- /dev/null
+++ b/tvix/eval/src/tests/nix_tests/eval-okay-pathexists.nix
@@ -0,0 +1,5 @@
+builtins.pathExists (builtins.toPath ./lib.nix)
+&& builtins.pathExists (builtins.toPath (builtins.toString ./lib.nix))
+&& !builtins.pathExists (builtins.toPath (builtins.toString ./bla.nix))
+&& builtins.pathExists ./lib.nix
+&& !builtins.pathExists ./bla.nix