about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/dependencies.builder0.sh3
-rw-r--r--tests/dependencies.nix6
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/dependencies.builder0.sh b/tests/dependencies.builder0.sh
index ea4116d90212..b02108fe6b48 100644
--- a/tests/dependencies.builder0.sh
+++ b/tests/dependencies.builder0.sh
@@ -1,3 +1,6 @@
+[ "${input1: -2}" = /. ]
+[ "${input2: -2}" = /. ]
+
 mkdir $out
 echo $(cat $input1/foo)$(cat $input2/bar) > $out/foobar
 
diff --git a/tests/dependencies.nix b/tests/dependencies.nix
index 6f6a7e46fa80..687237add820 100644
--- a/tests/dependencies.nix
+++ b/tests/dependencies.nix
@@ -9,14 +9,14 @@ let {
 
   input2 = mkDerivation {
     name = "dependencies-input-2";
-    builder = ./dependencies.builder2.sh;
+    builder = "${./dependencies.builder2.sh}";
   };
 
   body = mkDerivation {
     name = "dependencies";
-    builder = ./dependencies.builder0.sh  + "/FOOBAR/../.";
+    builder = ./dependencies.builder0.sh + "/FOOBAR/../.";
     input1 = input1 + "/.";
-    inherit input2;
+    input2 = "${input2}/.";
     meta.description = "Random test package";
   };